Skip to content

Commit 9a6a6fd

Browse files
authored
improvement(docs): updated with new ss, docs script updated to copy items from main app into docs for tools (#1918)
* improvement(docs): updated script to copy over icons, cleanup unnecessary pages * updated script with auto-icon generation * ignore translations, only icons changed * updated images * updated i18n.lock * updated images
1 parent 41066b8 commit 9a6a6fd

File tree

514 files changed

+43294
-15938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

514 files changed

+43294
-15938
lines changed

apps/docs/components/icons.tsx

Lines changed: 3838 additions & 128 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,40 @@
11
'use client'
22

33
import type * as React from 'react'
4+
import { blockTypeToIconMap } from './icon-mapping'
45

56
interface BlockInfoCardProps {
67
type: string
78
color: string
8-
icon?: boolean
9-
iconSvg?: string
9+
icon?: React.ComponentType<{ className?: string }>
10+
iconSvg?: string // Deprecated: Use automatic icon resolution instead
1011
}
1112

1213
export function BlockInfoCard({
1314
type,
1415
color,
15-
icon = false,
16+
icon: IconComponent,
1617
iconSvg,
1718
}: BlockInfoCardProps): React.ReactNode {
19+
// Auto-resolve icon component from block type if not explicitly provided
20+
const ResolvedIcon = IconComponent || blockTypeToIconMap[type] || null
21+
1822
return (
1923
<div className='mb-6 overflow-hidden rounded-lg border border-border'>
2024
<div className='flex items-center justify-center p-6'>
2125
<div
2226
className='flex h-20 w-20 items-center justify-center rounded-lg'
2327
style={{ backgroundColor: color }}
2428
>
25-
{iconSvg ? (
29+
{ResolvedIcon ? (
30+
<ResolvedIcon className='h-10 w-10 text-white' />
31+
) : iconSvg ? (
2632
<div className='h-10 w-10 text-white' dangerouslySetInnerHTML={{ __html: iconSvg }} />
2733
) : (
2834
<div className='font-mono text-xl opacity-70'>{type.substring(0, 2)}</div>
2935
)}
3036
</div>
3137
</div>
32-
{icon && (
33-
<style jsx global>{`
34-
.block-icon {
35-
width: 80px;
36-
height: 80px;
37-
margin: 1rem auto;
38-
display: block;
39-
}
40-
`}</style>
41-
)}
4238
</div>
4339
)
4440
}
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
// Auto-generated file - do not edit manually
2+
// Generated by scripts/generate-docs.ts
3+
// Maps block types to their icon component references
4+
5+
import type { ComponentType, SVGProps } from 'react'
6+
import {
7+
AirtableIcon,
8+
ArxivIcon,
9+
AsanaIcon,
10+
BrainIcon,
11+
BrowserUseIcon,
12+
ClayIcon,
13+
ConfluenceIcon,
14+
DiscordIcon,
15+
DocumentIcon,
16+
ElevenLabsIcon,
17+
ExaAIIcon,
18+
EyeIcon,
19+
FirecrawlIcon,
20+
GithubIcon,
21+
GmailIcon,
22+
GoogleCalendarIcon,
23+
GoogleDocsIcon,
24+
GoogleDriveIcon,
25+
GoogleFormsIcon,
26+
GoogleIcon,
27+
GoogleSheetsIcon,
28+
GoogleVaultIcon,
29+
HubspotIcon,
30+
HuggingFaceIcon,
31+
HunterIOIcon,
32+
ImageIcon,
33+
JinaAIIcon,
34+
JiraIcon,
35+
LinearIcon,
36+
LinkupIcon,
37+
Mem0Icon,
38+
MicrosoftExcelIcon,
39+
MicrosoftOneDriveIcon,
40+
MicrosoftPlannerIcon,
41+
MicrosoftSharepointIcon,
42+
MicrosoftTeamsIcon,
43+
MistralIcon,
44+
MongoDBIcon,
45+
MySQLIcon,
46+
NotionIcon,
47+
OpenAIIcon,
48+
OutlookIcon,
49+
PackageSearchIcon,
50+
ParallelIcon,
51+
PerplexityIcon,
52+
PineconeIcon,
53+
PipedriveIcon,
54+
PostgresIcon,
55+
QdrantIcon,
56+
RedditIcon,
57+
ResendIcon,
58+
S3Icon,
59+
SalesforceIcon,
60+
SerperIcon,
61+
SlackIcon,
62+
StagehandIcon,
63+
StripeIcon,
64+
SupabaseIcon,
65+
TavilyIcon,
66+
TelegramIcon,
67+
TranslateIcon,
68+
TrelloIcon,
69+
TwilioIcon,
70+
TypeformIcon,
71+
WealthboxIcon,
72+
WebflowIcon,
73+
WhatsAppIcon,
74+
WikipediaIcon,
75+
xIcon,
76+
YouTubeIcon,
77+
ZepIcon,
78+
} from '@/components/icons'
79+
80+
type IconComponent = ComponentType<SVGProps<SVGSVGElement>>
81+
82+
export const blockTypeToIconMap: Record<string, IconComponent> = {
83+
postgresql: PostgresIcon,
84+
twilio_voice: TwilioIcon,
85+
translate: TranslateIcon,
86+
tavily: TavilyIcon,
87+
stagehand_agent: StagehandIcon,
88+
youtube: YouTubeIcon,
89+
supabase: SupabaseIcon,
90+
vision: EyeIcon,
91+
confluence: ConfluenceIcon,
92+
arxiv: ArxivIcon,
93+
webflow: WebflowIcon,
94+
pinecone: PineconeIcon,
95+
whatsapp: WhatsAppIcon,
96+
typeform: TypeformIcon,
97+
qdrant: QdrantIcon,
98+
asana: AsanaIcon,
99+
memory: BrainIcon,
100+
serper: SerperIcon,
101+
linear: LinearIcon,
102+
exa: ExaAIIcon,
103+
telegram: TelegramIcon,
104+
salesforce: SalesforceIcon,
105+
hubspot: HubspotIcon,
106+
hunter: HunterIOIcon,
107+
linkup: LinkupIcon,
108+
mongodb: MongoDBIcon,
109+
airtable: AirtableIcon,
110+
discord: DiscordIcon,
111+
jina: JinaAIIcon,
112+
google_docs: GoogleDocsIcon,
113+
perplexity: PerplexityIcon,
114+
google_search: GoogleIcon,
115+
x: xIcon,
116+
google_calendar: GoogleCalendarIcon,
117+
zep: ZepIcon,
118+
microsoft_planner: MicrosoftPlannerIcon,
119+
thinking: BrainIcon,
120+
pipedrive: PipedriveIcon,
121+
stagehand: StagehandIcon,
122+
google_forms: GoogleFormsIcon,
123+
file: DocumentIcon,
124+
mistral_parse: MistralIcon,
125+
gmail: GmailIcon,
126+
openai: OpenAIIcon,
127+
outlook: OutlookIcon,
128+
onedrive: MicrosoftOneDriveIcon,
129+
resend: ResendIcon,
130+
google_vault: GoogleVaultIcon,
131+
sharepoint: MicrosoftSharepointIcon,
132+
huggingface: HuggingFaceIcon,
133+
clay: ClayIcon,
134+
jira: JiraIcon,
135+
wealthbox: WealthboxIcon,
136+
notion: NotionIcon,
137+
elevenlabs: ElevenLabsIcon,
138+
microsoft_teams: MicrosoftTeamsIcon,
139+
github: GithubIcon,
140+
google_drive: GoogleDriveIcon,
141+
reddit: RedditIcon,
142+
parallel_ai: ParallelIcon,
143+
stripe: StripeIcon,
144+
s3: S3Icon,
145+
trello: TrelloIcon,
146+
mem0: Mem0Icon,
147+
knowledge: PackageSearchIcon,
148+
twilio_sms: TwilioIcon,
149+
slack: SlackIcon,
150+
microsoft_excel: MicrosoftExcelIcon,
151+
image_generator: ImageIcon,
152+
google_sheets: GoogleSheetsIcon,
153+
wikipedia: WikipediaIcon,
154+
firecrawl: FirecrawlIcon,
155+
mysql: MySQLIcon,
156+
browser_use: BrowserUseIcon,
157+
}

apps/docs/content/docs/de/tools/airtable.mdx

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,6 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
88
<BlockInfoCard
99
type="airtable"
1010
color="#E0E0E0"
11-
icon={true}
12-
iconSvg={`<svg className="block-icon"
13-
14-
15-
16-
viewBox='0 -20.5 256 256'
17-
version='1.1'
18-
xmlns='http://www.w3.org/2000/svg'
19-
xmlnsXlink='http://www.w3.org/1999/xlink'
20-
preserveAspectRatio='xMidYMid'
21-
>
22-
<g>
23-
<path
24-
d='M114.25873,2.70101695 L18.8604023,42.1756384 C13.5552723,44.3711638 13.6102328,51.9065311 18.9486282,54.0225085 L114.746142,92.0117514 C123.163769,95.3498757 132.537419,95.3498757 140.9536,92.0117514 L236.75256,54.0225085 C242.08951,51.9065311 242.145916,44.3711638 236.83934,42.1756384 L141.442459,2.70101695 C132.738459,-0.900338983 122.961284,-0.900338983 114.25873,2.70101695'
25-
fill='#FFBF00'
26-
/>
27-
<path
28-
d='M136.349071,112.756863 L136.349071,207.659101 C136.349071,212.173089 140.900664,215.263892 145.096461,213.600615 L251.844122,172.166219 C254.281184,171.200072 255.879376,168.845451 255.879376,166.224705 L255.879376,71.3224678 C255.879376,66.8084791 251.327783,63.7176768 247.131986,65.3809537 L140.384325,106.815349 C137.94871,107.781496 136.349071,110.136118 136.349071,112.756863'
29-
fill='#26B5F8'
30-
/>
31-
<path
32-
d='M111.422771,117.65355 L79.742409,132.949912 L76.5257763,134.504714 L9.65047684,166.548104 C5.4112904,168.593211 0.000578531073,165.503855 0.000578531073,160.794612 L0.000578531073,71.7210757 C0.000578531073,70.0173017 0.874160452,68.5463864 2.04568588,67.4384994 C2.53454463,66.9481944 3.08848814,66.5446689 3.66412655,66.2250305 C5.26231864,65.2661153 7.54173107,65.0101153 9.47981017,65.7766689 L110.890522,105.957098 C116.045234,108.002206 116.450206,115.225166 111.422771,117.65355'
33-
fill='#ED3049'
34-
/>
35-
<path
36-
d='M111.422771,117.65355 L79.742409,132.949912 L2.04568588,67.4384994 C2.53454463,66.9481944 3.08848814,66.5446689 3.66412655,66.2250305 C5.26231864,65.2661153 7.54173107,65.0101153 9.47981017,65.7766689 L110.890522,105.957098 C116.045234,108.002206 116.450206,115.225166 111.422771,117.65355'
37-
fillOpacity='0.25'
38-
fill='#000000'
39-
/>
40-
</g>
41-
</svg>`}
4211
/>
4312

4413
{/* MANUAL-CONTENT-START:intro */}

apps/docs/content/docs/de/tools/arxiv.mdx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,6 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
88
<BlockInfoCard
99
type="arxiv"
1010
color="#E0E0E0"
11-
icon={true}
12-
iconSvg={`<svg className="block-icon" id='logomark' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.732 24.269'>
13-
<g id='tiny'>
14-
<path
15-
d='M573.549,280.916l2.266,2.738,6.674-7.84c.353-.47.52-.717.353-1.117a1.218,1.218,0,0,0-1.061-.748h0a.953.953,0,0,0-.712.262Z'
16-
transform='translate(-566.984 -271.548)'
17-
fill='#bdb9b4'
18-
/>
19-
<path
20-
d='M579.525,282.225l-10.606-10.174a1.413,1.413,0,0,0-.834-.5,1.09,1.09,0,0,0-1.027.66c-.167.4-.047.681.319,1.206l8.44,10.242h0l-6.282,7.716a1.336,1.336,0,0,0-.323,1.3,1.114,1.114,0,0,0,1.04.69A.992.992,0,0,0,571,293l8.519-7.92A1.924,1.924,0,0,0,579.525,282.225Z'
21-
transform='translate(-566.984 -271.548)'
22-
fill='#b31b1b'
23-
/>
24-
<path
25-
d='M584.32,293.912l-8.525-10.275,0,0L573.53,280.9l-1.389,1.254a2.063,2.063,0,0,0,0,2.965l10.812,10.419a.925.925,0,0,0,.742.282,1.039,1.039,0,0,0,.953-.667A1.261,1.261,0,0,0,584.32,293.912Z'
26-
transform='translate(-566.984 -271.548)'
27-
fill='#bdb9b4'
28-
/>
29-
</g>
30-
</svg>`}
3111
/>
3212

3313
{/* MANUAL-CONTENT-START:intro */}

apps/docs/content/docs/de/tools/asana.mdx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,6 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
88
<BlockInfoCard
99
type="asana"
1010
color="#E0E0E0"
11-
icon={true}
12-
iconSvg={`<svg className="block-icon"
13-
14-
xmlns='http://www.w3.org/2000/svg'
15-
16-
17-
viewBox='781.361 0 944.893 873.377'
18-
>
19-
<radialGradient
20-
id='asana_radial_gradient'
21-
cx='943.992'
22-
cy='1221.416'
23-
r='.663'
24-
gradientTransform='matrix(944.8934 0 0 -873.3772 -890717.875 1067234.75)'
25-
gradientUnits='userSpaceOnUse'
26-
>
27-
<stop offset='0' stopColor='#ffb900' />
28-
<stop offset='.6' stopColor='#f95d8f' />
29-
<stop offset='.999' stopColor='#f95353' />
30-
</radialGradient>
31-
<path
32-
fill='url(#asana_radial_gradient)'
33-
d='M1520.766 462.371c-113.508 0-205.508 92-205.508 205.488 0 113.499 92 205.518 205.508 205.518 113.489 0 205.488-92.019 205.488-205.518 0-113.488-91.999-205.488-205.488-205.488zm-533.907.01c-113.489.01-205.498 91.99-205.498 205.488 0 113.489 92.009 205.498 205.498 205.498 113.498 0 205.508-92.009 205.508-205.498 0-113.499-92.01-205.488-205.518-205.488h.01zm472.447-256.883c0 113.489-91.999 205.518-205.488 205.518-113.508 0-205.508-92.029-205.508-205.518S1140.31 0 1253.817 0c113.489 0 205.479 92.009 205.479 205.498h.01z'
34-
/>
35-
</svg>`}
3611
/>
3712

3813
## Nutzungsanleitung

apps/docs/content/docs/de/tools/browser_use.mdx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,6 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
88
<BlockInfoCard
99
type="browser_use"
1010
color="#E0E0E0"
11-
icon={true}
12-
iconSvg={`<svg className="block-icon"
13-
14-
version='1.0'
15-
xmlns='http://www.w3.org/2000/svg'
16-
17-
18-
viewBox='0 0 150 150'
19-
preserveAspectRatio='xMidYMid meet'
20-
>
21-
<g transform='translate(0,150) scale(0.05,-0.05)' fill='#000000' stroke='none'>
22-
<path
23-
d='M786 2713 c-184 -61 -353 -217 -439 -405 -76 -165 -65 -539 19 -666
24-
l57 -85 -48 -124 c-203 -517 -79 -930 346 -1155 159 -85 441 -71 585 28 l111
25-
77 196 -76 c763 -293 1353 304 1051 1063 -77 191 -77 189 -14 282 163 239 97
26-
660 -140 893 -235 231 -528 256 -975 83 l-96 -37 -121 67 c-144 79 -383 103
27-
-532 55z m459 -235 c88 -23 96 -51 22 -79 -29 -11 -84 -47 -121 -80 -57 -50
28-
-84 -59 -178 -59 -147 0 -190 -44 -238 -241 -102 -424 -230 -440 -230 -29 1
29-
417 289 606 745 488z m1046 -18 c174 -85 266 -309 239 -582 -26 -256 -165
30-
-165 -230 151 -73 356 -469 332 -954 -58 -587 -472 -829 -1251 -388 -1251 108
31-
0 126 -7 214 -80 54 -44 104 -80 113 -80 54 0 -2 -43 -89 -69 -220 -66 -426
32-
-22 -568 120 -599 599 871 2232 1663 1849z m-234 -510 c969 -1036 357 -1962
33-
-787 -1190 -254 171 -348 303 -323 454 21 128 40 123 231 -59 691 -658 1362
34-
-583 1052 117 -106 239 -366 585 -504 671 l-72 44 98 45 c150 68 169 63 305
35-
-82z m-329 -310 c161 -184 163 -160 -30 -338 -188 -173 -180 -173 -386 19
36-
-163 153 -163 157 7 324 218 213 219 213 409 -5z m354 -375 c92 -239 -179
37-
-462 -377 -309 l-46 35 186 163 c211 186 209 185 237 111z'
38-
/>
39-
</g>
40-
</svg>`}
4111
/>
4212

4313
{/* MANUAL-CONTENT-START:intro */}

0 commit comments

Comments
 (0)