Skip to content

Commit 772c2cd

Browse files
author
aadamgough
committed
updated docs script
1 parent 0c828d7 commit 772c2cd

File tree

2 files changed

+97
-96
lines changed

2 files changed

+97
-96
lines changed

apps/docs/components/ui/icon-mapping.ts

Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -120,117 +120,117 @@ import {
120120
type IconComponent = ComponentType<SVGProps<SVGSVGElement>>
121121

122122
export const blockTypeToIconMap: Record<string, IconComponent> = {
123-
calendly: CalendlyIcon,
124-
mailchimp: MailchimpIcon,
125-
postgresql: PostgresIcon,
126-
twilio_voice: TwilioIcon,
127-
elasticsearch: ElasticsearchIcon,
128-
rds: RDSIcon,
129-
translate: TranslateIcon,
130-
dynamodb: DynamoDBIcon,
131-
wordpress: WordpressIcon,
132-
tavily: TavilyIcon,
133-
zendesk: ZendeskIcon,
134-
youtube: YouTubeIcon,
135-
supabase: SupabaseIcon,
136-
vision: EyeIcon,
137-
zoom: ZoomIcon,
138-
confluence: ConfluenceIcon,
139-
arxiv: ArxivIcon,
140-
webflow: WebflowIcon,
141-
pinecone: PineconeIcon,
123+
ahrefs: AhrefsIcon,
124+
airtable: AirtableIcon,
125+
apify: ApifyIcon,
142126
apollo: ApolloIcon,
143-
servicenow: ServiceNowIcon,
144-
whatsapp: WhatsAppIcon,
145-
typeform: TypeformIcon,
146-
qdrant: QdrantIcon,
147-
shopify: ShopifyIcon,
127+
arxiv: ArxivIcon,
148128
asana: AsanaIcon,
149-
sqs: SQSIcon,
150-
apify: ApifyIcon,
151-
memory: BrainIcon,
152-
gitlab: GitLabIcon,
153-
polymarket: PolymarketIcon,
154-
serper: SerperIcon,
155-
linear: LinearIcon,
129+
browser_use: BrowserUseIcon,
130+
calendly: CalendlyIcon,
131+
clay: ClayIcon,
132+
confluence: ConfluenceIcon,
133+
cursor: CursorIcon,
134+
datadog: DatadogIcon,
135+
discord: DiscordIcon,
136+
dropbox: DropboxIcon,
137+
duckduckgo: DuckDuckGoIcon,
138+
dynamodb: DynamoDBIcon,
139+
elasticsearch: ElasticsearchIcon,
140+
elevenlabs: ElevenLabsIcon,
156141
exa: ExaAIIcon,
157-
telegram: TelegramIcon,
158-
salesforce: SalesforceIcon,
142+
file: DocumentIcon,
143+
firecrawl: FirecrawlIcon,
144+
github: GithubIcon,
145+
gitlab: GitLabIcon,
146+
gmail: GmailIcon,
147+
google_calendar: GoogleCalendarIcon,
148+
google_docs: GoogleDocsIcon,
149+
google_drive: GoogleDriveIcon,
150+
google_forms: GoogleFormsIcon,
151+
google_groups: GoogleGroupsIcon,
152+
google_search: GoogleIcon,
153+
google_sheets: GoogleSheetsIcon,
154+
google_slides: GoogleSlidesIcon,
155+
google_vault: GoogleVaultIcon,
156+
grafana: GrafanaIcon,
159157
hubspot: HubspotIcon,
158+
huggingface: HuggingFaceIcon,
160159
hunter: HunterIOIcon,
161-
linkup: LinkupIcon,
162-
mongodb: MongoDBIcon,
163-
airtable: AirtableIcon,
164-
discord: DiscordIcon,
165-
ahrefs: AhrefsIcon,
166-
neo4j: Neo4jIcon,
167-
tts: TTSIcon,
160+
image_generator: ImageIcon,
161+
incidentio: IncidentioIcon,
162+
intercom: IntercomIcon,
168163
jina: JinaAIIcon,
169-
google_docs: GoogleDocsIcon,
170-
perplexity: PerplexityIcon,
171-
google_search: GoogleIcon,
172-
x: xIcon,
164+
jira: JiraIcon,
173165
kalshi: KalshiIcon,
174-
google_calendar: GoogleCalendarIcon,
175-
zep: ZepIcon,
176-
posthog: PosthogIcon,
177-
grafana: GrafanaIcon,
178-
google_slides: GoogleSlidesIcon,
166+
knowledge: PackageSearchIcon,
167+
linear: LinearIcon,
168+
linkedin: LinkedInIcon,
169+
linkup: LinkupIcon,
170+
mailchimp: MailchimpIcon,
171+
mailgun: MailgunIcon,
172+
mem0: Mem0Icon,
173+
memory: BrainIcon,
174+
microsoft_excel: MicrosoftExcelIcon,
179175
microsoft_planner: MicrosoftPlannerIcon,
180-
thinking: BrainIcon,
181-
pipedrive: PipedriveIcon,
182-
dropbox: DropboxIcon,
183-
stagehand: StagehandIcon,
184-
google_forms: GoogleFormsIcon,
185-
file: DocumentIcon,
176+
microsoft_teams: MicrosoftTeamsIcon,
186177
mistral_parse: MistralIcon,
187-
gmail: GmailIcon,
178+
mongodb: MongoDBIcon,
179+
mysql: MySQLIcon,
180+
neo4j: Neo4jIcon,
181+
notion: NotionIcon,
182+
onedrive: MicrosoftOneDriveIcon,
188183
openai: OpenAIIcon,
189184
outlook: OutlookIcon,
190-
incidentio: IncidentioIcon,
191-
onedrive: MicrosoftOneDriveIcon,
185+
parallel_ai: ParallelIcon,
186+
perplexity: PerplexityIcon,
187+
pinecone: PineconeIcon,
188+
pipedrive: PipedriveIcon,
189+
polymarket: PolymarketIcon,
190+
postgresql: PostgresIcon,
191+
posthog: PosthogIcon,
192+
qdrant: QdrantIcon,
193+
rds: RDSIcon,
194+
reddit: RedditIcon,
192195
resend: ResendIcon,
193-
google_vault: GoogleVaultIcon,
194-
sharepoint: MicrosoftSharepointIcon,
195-
huggingface: HuggingFaceIcon,
196-
sendgrid: SendgridIcon,
197-
video_generator: VideoIcon,
198-
smtp: SmtpIcon,
199-
google_groups: GoogleGroupsIcon,
200-
mailgun: MailgunIcon,
201-
clay: ClayIcon,
202-
jira: JiraIcon,
196+
s3: S3Icon,
197+
salesforce: SalesforceIcon,
203198
search: SearchIcon,
204-
linkedin: LinkedInIcon,
205-
wealthbox: WealthboxIcon,
206-
notion: NotionIcon,
207-
elevenlabs: ElevenLabsIcon,
208-
microsoft_teams: MicrosoftTeamsIcon,
209-
github: GithubIcon,
210-
sftp: SftpIcon,
211-
ssh: SshIcon,
212-
google_drive: GoogleDriveIcon,
199+
sendgrid: SendgridIcon,
213200
sentry: SentryIcon,
214-
reddit: RedditIcon,
215-
parallel_ai: ParallelIcon,
201+
serper: SerperIcon,
202+
servicenow: ServiceNowIcon,
203+
sftp: SftpIcon,
204+
sharepoint: MicrosoftSharepointIcon,
205+
shopify: ShopifyIcon,
206+
slack: SlackIcon,
207+
smtp: SmtpIcon,
216208
spotify: SpotifyIcon,
209+
sqs: SQSIcon,
210+
ssh: SshIcon,
211+
stagehand: StagehandIcon,
217212
stripe: StripeIcon,
218-
s3: S3Icon,
213+
stt: STTIcon,
214+
supabase: SupabaseIcon,
215+
tavily: TavilyIcon,
216+
telegram: TelegramIcon,
217+
thinking: BrainIcon,
218+
translate: TranslateIcon,
219219
trello: TrelloIcon,
220-
mem0: Mem0Icon,
221-
knowledge: PackageSearchIcon,
222-
intercom: IntercomIcon,
220+
tts: TTSIcon,
223221
twilio_sms: TwilioIcon,
224-
duckduckgo: DuckDuckGoIcon,
225-
slack: SlackIcon,
226-
datadog: DatadogIcon,
227-
microsoft_excel: MicrosoftExcelIcon,
228-
image_generator: ImageIcon,
229-
google_sheets: GoogleSheetsIcon,
222+
twilio_voice: TwilioIcon,
223+
typeform: TypeformIcon,
224+
video_generator: VideoIcon,
225+
vision: EyeIcon,
226+
wealthbox: WealthboxIcon,
227+
webflow: WebflowIcon,
228+
whatsapp: WhatsAppIcon,
230229
wikipedia: WikipediaIcon,
231-
cursor: CursorIcon,
232-
firecrawl: FirecrawlIcon,
233-
mysql: MySQLIcon,
234-
browser_use: BrowserUseIcon,
235-
stt: STTIcon,
230+
wordpress: WordpressIcon,
231+
x: xIcon,
232+
youtube: YouTubeIcon,
233+
zendesk: ZendeskIcon,
234+
zep: ZepIcon,
235+
zoom: ZoomIcon,
236236
}

scripts/generate-docs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async function generateIconMapping(): Promise<Record<string, string>> {
7171
console.log('Generating icon mapping from block definitions...')
7272

7373
const iconMapping: Record<string, string> = {}
74-
const blockFiles = await glob(`${BLOCKS_PATH}/*.ts`)
74+
const blockFiles = (await glob(`${BLOCKS_PATH}/*.ts`)).sort()
7575

7676
for (const blockFile of blockFiles) {
7777
const fileContent = fs.readFileSync(blockFile, 'utf-8')
@@ -132,6 +132,7 @@ function writeIconMapping(iconMapping: Record<string, string>): void {
132132

133133
// Generate mapping with direct references (no dynamic access for tree shaking)
134134
const mappingEntries = Object.entries(iconMapping)
135+
.sort(([a], [b]) => a.localeCompare(b))
135136
.map(([blockType, iconName]) => ` ${blockType}: ${iconName},`)
136137
.join('\n')
137138

@@ -1165,7 +1166,7 @@ async function generateAllBlockDocs() {
11651166
const iconMapping = await generateIconMapping()
11661167
writeIconMapping(iconMapping)
11671168

1168-
const blockFiles = await glob(`${BLOCKS_PATH}/*.ts`)
1169+
const blockFiles = (await glob(`${BLOCKS_PATH}/*.ts`)).sort()
11691170

11701171
for (const blockFile of blockFiles) {
11711172
await generateBlockDoc(blockFile)

0 commit comments

Comments
 (0)