@vercel/geistdocs 1.25.0 → 1.25.1-canary.bd8995b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1 -1
- package/dist/components/callout.d.ts.map +1 -1
- package/dist/components/callout.js +1 -1
- package/dist/components/code-block-tabs.d.ts +5 -2
- package/dist/components/code-block-tabs.d.ts.map +1 -1
- package/dist/components/code-block-tabs.js +28 -5
- package/dist/components/code-block.d.ts +2 -6
- package/dist/components/code-block.d.ts.map +1 -1
- package/dist/components/code-block.js +22 -68
- package/dist/components/command-prompt.d.ts.map +1 -1
- package/dist/components/command-prompt.js +3 -3
- package/dist/components/copy-prompt.d.ts.map +1 -1
- package/dist/components/copy-prompt.js +4 -4
- package/dist/components/mermaid.js +1 -1
- package/dist/controls.d.ts +8 -4
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +14 -14
- package/dist/footer.d.ts.map +1 -1
- package/dist/footer.js +6 -6
- package/dist/home-layout.js +1 -1
- package/dist/internal/chat/conversation.d.ts +4 -3
- package/dist/internal/chat/conversation.d.ts.map +1 -1
- package/dist/internal/chat/conversation.js +5 -5
- package/dist/internal/chat/copy-chat.d.ts.map +1 -1
- package/dist/internal/chat/copy-chat.js +13 -10
- package/dist/internal/chat/dots-spinner.d.ts +5 -0
- package/dist/internal/chat/dots-spinner.d.ts.map +1 -0
- package/dist/internal/chat/dots-spinner.js +15 -0
- package/dist/internal/chat/message-metadata.d.ts.map +1 -1
- package/dist/internal/chat/message-metadata.js +8 -7
- package/dist/internal/chat/message.d.ts.map +1 -1
- package/dist/internal/chat/message.js +5 -5
- package/dist/internal/chat/prompt-input.d.ts +1 -1
- package/dist/internal/chat/prompt-input.d.ts.map +1 -1
- package/dist/internal/chat/prompt-input.js +25 -27
- package/dist/internal/chat/shell.d.ts.map +1 -1
- package/dist/internal/chat/shell.js +27 -19
- package/dist/internal/chat/sources.d.ts +3 -1
- package/dist/internal/chat/sources.d.ts.map +1 -1
- package/dist/internal/chat/sources.js +6 -6
- package/dist/internal/chat/suggestion.d.ts +11 -6
- package/dist/internal/chat/suggestion.d.ts.map +1 -1
- package/dist/internal/chat/suggestion.js +5 -5
- package/dist/internal/docs-page-error-boundary.d.ts.map +1 -1
- package/dist/internal/docs-page-error-boundary.js +3 -3
- package/dist/internal/external-arrow.d.ts.map +1 -1
- package/dist/internal/external-arrow.js +1 -1
- package/dist/internal/footer/rss-button.d.ts.map +1 -1
- package/dist/internal/footer/rss-button.js +3 -3
- package/dist/internal/github-button.d.ts.map +1 -1
- package/dist/internal/github-button.js +3 -3
- package/dist/internal/navbar/desktop-menu.d.ts.map +1 -1
- package/dist/internal/navbar/desktop-menu.js +3 -3
- package/dist/internal/navbar/mobile-menu.d.ts.map +1 -1
- package/dist/internal/navbar/mobile-menu.js +3 -3
- package/dist/internal/navbar/navbar-logo.d.ts.map +1 -1
- package/dist/internal/navbar/navbar-logo.js +6 -8
- package/dist/internal/navbar/navbar-shell.d.ts.map +1 -1
- package/dist/internal/navbar/navbar-shell.js +1 -1
- package/dist/internal/page-actions-client.d.ts.map +1 -1
- package/dist/internal/page-actions-client.js +19 -20
- package/dist/internal/page-breadcrumb.d.ts.map +1 -1
- package/dist/internal/page-breadcrumb.js +3 -3
- package/dist/internal/page-footer.d.ts.map +1 -1
- package/dist/internal/page-footer.js +2 -2
- package/dist/internal/provider-client.d.ts.map +1 -1
- package/dist/internal/provider-client.js +9 -9
- package/dist/internal/search.d.ts.map +1 -1
- package/dist/internal/search.js +2 -2
- package/dist/internal/sidebar-tree.d.ts.map +1 -1
- package/dist/internal/sidebar-tree.js +9 -7
- package/dist/internal/sidebar.d.ts.map +1 -1
- package/dist/internal/sidebar.js +6 -8
- package/dist/internal/toc-items.d.ts.map +1 -1
- package/dist/internal/toc-items.js +1 -1
- package/dist/internal/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/internal/ui/dropdown-menu.js +5 -5
- package/dist/internal/ui/navigation-menu.d.ts.map +1 -1
- package/dist/internal/ui/navigation-menu.js +2 -2
- package/dist/internal/ui/popover.d.ts.map +1 -1
- package/dist/internal/ui/popover.js +1 -1
- package/dist/internal/ui/scroll-area.d.ts.map +1 -1
- package/dist/internal/ui/scroll-area.js +1 -1
- package/dist/layout.js +1 -1
- package/dist/mdx.d.ts.map +1 -1
- package/dist/mdx.js +2 -1
- package/dist/mobile-docs-bar.d.ts.map +1 -1
- package/dist/mobile-docs-bar.js +1 -2
- package/dist/navbar.js +3 -2
- package/dist/pages/docs.d.ts.map +1 -1
- package/dist/pages/docs.js +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +0 -2
- package/dist/versions.d.ts.map +1 -1
- package/dist/versions.js +5 -5
- package/docs/agents.md +1 -2
- package/docs/llms.txt +88 -80
- package/docs/manifest.json +1 -10
- package/docs/pages/migration.md +5 -7
- package/docs/pages/syntax.md +79 -5
- package/docs/pages/versioned-docs.md +3 -3
- package/docs/sitemap.md +0 -1
- package/package.json +10 -102
- package/styles.css +3 -2
- package/template/AGENTS.md +10 -0
- package/template/app/[lang]/(home)/components/hero.tsx +2 -2
- package/template/app/[lang]/(home)/components/one-two-section.tsx +9 -1
- package/template/app/[lang]/(home)/components/text-grid-section.tsx +1 -1
- package/template/app/[lang]/(home)/page.tsx +5 -6
- package/template/app/[lang]/layout.tsx +7 -4
- package/template/app/styles/geistdocs.css +17 -14
- package/template/content/docs/configuration.cn.mdx +2 -2
- package/template/content/docs/migration.mdx +5 -7
- package/template/content/docs/syntax.mdx +79 -5
- package/template/content/docs/versioned-docs.mdx +3 -3
- package/template/lib/geistdocs/config.tsx +0 -5
- package/template/next.config.ts +16 -2
- package/template/package.json +5 -7
- package/theme.css +68 -662
- package/dist/assets/icons/icon-acronym-ts.d.ts +0 -5
- package/dist/assets/icons/icon-acronym-ts.d.ts.map +0 -1
- package/dist/assets/icons/icon-acronym-ts.js +0 -4
- package/dist/assets/icons/icon-agents.d.ts +0 -5
- package/dist/assets/icons/icon-agents.d.ts.map +0 -1
- package/dist/assets/icons/icon-agents.js +0 -4
- package/dist/assets/icons/icon-api.d.ts +0 -5
- package/dist/assets/icons/icon-api.d.ts.map +0 -1
- package/dist/assets/icons/icon-api.js +0 -4
- package/dist/assets/icons/icon-arrow-up-right-small.d.ts +0 -8
- package/dist/assets/icons/icon-arrow-up-right-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-arrow-up-right-small.js +0 -4
- package/dist/assets/icons/icon-arrow-up-right.d.ts +0 -5
- package/dist/assets/icons/icon-arrow-up-right.d.ts.map +0 -1
- package/dist/assets/icons/icon-arrow-up-right.js +0 -4
- package/dist/assets/icons/icon-check.d.ts +0 -5
- package/dist/assets/icons/icon-check.d.ts.map +0 -1
- package/dist/assets/icons/icon-check.js +0 -4
- package/dist/assets/icons/icon-chevron-down-small.d.ts +0 -8
- package/dist/assets/icons/icon-chevron-down-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-chevron-down-small.js +0 -7
- package/dist/assets/icons/icon-chevron-right.d.ts +0 -5
- package/dist/assets/icons/icon-chevron-right.d.ts.map +0 -1
- package/dist/assets/icons/icon-chevron-right.js +0 -4
- package/dist/assets/icons/icon-clock.d.ts +0 -5
- package/dist/assets/icons/icon-clock.d.ts.map +0 -1
- package/dist/assets/icons/icon-clock.js +0 -4
- package/dist/assets/icons/icon-copy.d.ts +0 -5
- package/dist/assets/icons/icon-copy.d.ts.map +0 -1
- package/dist/assets/icons/icon-copy.js +0 -4
- package/dist/assets/icons/icon-display-small.d.ts +0 -5
- package/dist/assets/icons/icon-display-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-display-small.js +0 -4
- package/dist/assets/icons/icon-display.d.ts +0 -5
- package/dist/assets/icons/icon-display.d.ts.map +0 -1
- package/dist/assets/icons/icon-display.js +0 -4
- package/dist/assets/icons/icon-file-text.d.ts +0 -5
- package/dist/assets/icons/icon-file-text.d.ts.map +0 -1
- package/dist/assets/icons/icon-file-text.js +0 -4
- package/dist/assets/icons/icon-folder-open.d.ts +0 -5
- package/dist/assets/icons/icon-folder-open.d.ts.map +0 -1
- package/dist/assets/icons/icon-folder-open.js +0 -4
- package/dist/assets/icons/icon-linked.d.ts +0 -5
- package/dist/assets/icons/icon-linked.d.ts.map +0 -1
- package/dist/assets/icons/icon-linked.js +0 -4
- package/dist/assets/icons/icon-logs.d.ts +0 -5
- package/dist/assets/icons/icon-logs.d.ts.map +0 -1
- package/dist/assets/icons/icon-logs.js +0 -4
- package/dist/assets/icons/icon-menu-alt.d.ts +0 -5
- package/dist/assets/icons/icon-menu-alt.d.ts.map +0 -1
- package/dist/assets/icons/icon-menu-alt.js +0 -4
- package/dist/assets/icons/icon-message.d.ts +0 -5
- package/dist/assets/icons/icon-message.d.ts.map +0 -1
- package/dist/assets/icons/icon-message.js +0 -4
- package/dist/assets/icons/icon-moon-small.d.ts +0 -5
- package/dist/assets/icons/icon-moon-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-moon-small.js +0 -4
- package/dist/assets/icons/icon-moon.d.ts +0 -5
- package/dist/assets/icons/icon-moon.d.ts.map +0 -1
- package/dist/assets/icons/icon-moon.js +0 -4
- package/dist/assets/icons/icon-openai.d.ts +0 -5
- package/dist/assets/icons/icon-openai.d.ts.map +0 -1
- package/dist/assets/icons/icon-openai.js +0 -4
- package/dist/assets/icons/icon-plus-circle.d.ts +0 -5
- package/dist/assets/icons/icon-plus-circle.d.ts.map +0 -1
- package/dist/assets/icons/icon-plus-circle.js +0 -4
- package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts +0 -5
- package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts.map +0 -1
- package/dist/assets/icons/icon-refresh-counter-clockwise.js +0 -4
- package/dist/assets/icons/icon-robot.d.ts +0 -5
- package/dist/assets/icons/icon-robot.d.ts.map +0 -1
- package/dist/assets/icons/icon-robot.js +0 -4
- package/dist/assets/icons/icon-sandbox.d.ts +0 -5
- package/dist/assets/icons/icon-sandbox.d.ts.map +0 -1
- package/dist/assets/icons/icon-sandbox.js +0 -4
- package/dist/assets/icons/icon-slash-forward.d.ts +0 -8
- package/dist/assets/icons/icon-slash-forward.d.ts.map +0 -1
- package/dist/assets/icons/icon-slash-forward.js +0 -4
- package/dist/assets/icons/icon-sparkles.d.ts +0 -5
- package/dist/assets/icons/icon-sparkles.d.ts.map +0 -1
- package/dist/assets/icons/icon-sparkles.js +0 -4
- package/dist/assets/icons/icon-sun-small.d.ts +0 -5
- package/dist/assets/icons/icon-sun-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-sun-small.js +0 -4
- package/dist/assets/icons/icon-sun.d.ts +0 -5
- package/dist/assets/icons/icon-sun.d.ts.map +0 -1
- package/dist/assets/icons/icon-sun.js +0 -4
- package/dist/assets/icons/icon-trash.d.ts +0 -5
- package/dist/assets/icons/icon-trash.d.ts.map +0 -1
- package/dist/assets/icons/icon-trash.js +0 -4
- package/dist/assets/icons/icon-user.d.ts +0 -5
- package/dist/assets/icons/icon-user.d.ts.map +0 -1
- package/dist/assets/icons/icon-user.js +0 -4
- package/dist/assets/icons/icon-workflow.d.ts +0 -5
- package/dist/assets/icons/icon-workflow.d.ts.map +0 -1
- package/dist/assets/icons/icon-workflow.js +0 -4
- package/dist/assets/icons/icon-wrench.d.ts +0 -5
- package/dist/assets/icons/icon-wrench.d.ts.map +0 -1
- package/dist/assets/icons/icon-wrench.js +0 -4
- package/dist/assets/icons/index.d.ts +0 -35
- package/dist/assets/icons/index.d.ts.map +0 -1
- package/dist/assets/icons/index.js +0 -35
- package/dist/assets/logos/index.d.ts +0 -17
- package/dist/assets/logos/index.d.ts.map +0 -1
- package/dist/assets/logos/index.js +0 -17
- package/dist/assets/logos/logo-ai-elements.d.ts +0 -5
- package/dist/assets/logos/logo-ai-elements.d.ts.map +0 -1
- package/dist/assets/logos/logo-ai-elements.js +0 -5
- package/dist/assets/logos/logo-ai-sdk.d.ts +0 -5
- package/dist/assets/logos/logo-ai-sdk.d.ts.map +0 -1
- package/dist/assets/logos/logo-ai-sdk.js +0 -5
- package/dist/assets/logos/logo-chat-sdk.d.ts +0 -5
- package/dist/assets/logos/logo-chat-sdk.d.ts.map +0 -1
- package/dist/assets/logos/logo-chat-sdk.js +0 -5
- package/dist/assets/logos/logo-eve.d.ts +0 -5
- package/dist/assets/logos/logo-eve.d.ts.map +0 -1
- package/dist/assets/logos/logo-eve.js +0 -5
- package/dist/assets/logos/logo-flags-sdk.d.ts +0 -5
- package/dist/assets/logos/logo-flags-sdk.d.ts.map +0 -1
- package/dist/assets/logos/logo-flags-sdk.js +0 -5
- package/dist/assets/logos/logo-icon-vercel.d.ts +0 -5
- package/dist/assets/logos/logo-icon-vercel.d.ts.map +0 -1
- package/dist/assets/logos/logo-icon-vercel.js +0 -4
- package/dist/assets/logos/logo-nextjs.d.ts +0 -5
- package/dist/assets/logos/logo-nextjs.d.ts.map +0 -1
- package/dist/assets/logos/logo-nextjs.js +0 -9
- package/dist/assets/logos/logo-streamdown.d.ts +0 -5
- package/dist/assets/logos/logo-streamdown.d.ts.map +0 -1
- package/dist/assets/logos/logo-streamdown.js +0 -5
- package/dist/assets/logos/logo-svelte-kit.d.ts +0 -5
- package/dist/assets/logos/logo-svelte-kit.d.ts.map +0 -1
- package/dist/assets/logos/logo-svelte-kit.js +0 -4
- package/dist/assets/logos/logo-turborepo.d.ts +0 -5
- package/dist/assets/logos/logo-turborepo.d.ts.map +0 -1
- package/dist/assets/logos/logo-turborepo.js +0 -5
- package/dist/assets/logos/logo-vercel-oss.d.ts +0 -5
- package/dist/assets/logos/logo-vercel-oss.d.ts.map +0 -1
- package/dist/assets/logos/logo-vercel-oss.js +0 -4
- package/dist/assets/logos/logo-workflow-sdk.d.ts +0 -5
- package/dist/assets/logos/logo-workflow-sdk.d.ts.map +0 -1
- package/dist/assets/logos/logo-workflow-sdk.js +0 -5
- package/dist/components/badge.d.ts +0 -11
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.js +0 -22
- package/dist/components/button-group.d.ts +0 -2
- package/dist/components/button-group.d.ts.map +0 -1
- package/dist/components/button-group.js +0 -2
- package/dist/components/button.d.ts +0 -2
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js +0 -2
- package/dist/components/card.d.ts +0 -2
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js +0 -2
- package/dist/components/dialog.d.ts +0 -13
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js +0 -35
- package/dist/components/drawer.d.ts +0 -2
- package/dist/components/drawer.d.ts.map +0 -1
- package/dist/components/drawer.js +0 -3
- package/dist/components/input-group.d.ts +0 -2
- package/dist/components/input-group.d.ts.map +0 -1
- package/dist/components/input-group.js +0 -3
- package/dist/components/input.d.ts +0 -2
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js +0 -2
- package/dist/components/kbd.d.ts +0 -2
- package/dist/components/kbd.d.ts.map +0 -1
- package/dist/components/kbd.js +0 -2
- package/dist/components/separator.d.ts +0 -2
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.js +0 -3
- package/dist/components/sheet.d.ts +0 -2
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.js +0 -3
- package/dist/components/sonner.d.ts +0 -2
- package/dist/components/sonner.d.ts.map +0 -1
- package/dist/components/sonner.js +0 -3
- package/dist/components/spinner.d.ts +0 -2
- package/dist/components/spinner.d.ts.map +0 -1
- package/dist/components/spinner.js +0 -2
- package/dist/components/switch.d.ts +0 -11
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.js +0 -12
- package/dist/components/textarea.d.ts +0 -2
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.js +0 -2
- package/dist/components/theme-aware-image.d.ts +0 -12
- package/dist/components/theme-aware-image.d.ts.map +0 -1
- package/dist/components/theme-aware-image.js +0 -8
- package/dist/components/theme-switcher.d.ts +0 -8
- package/dist/components/theme-switcher.d.ts.map +0 -1
- package/dist/components/theme-switcher.js +0 -37
- package/dist/components/tooltip.d.ts +0 -2
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.js +0 -3
- package/dist/internal/chat/shimmer.d.ts +0 -11
- package/dist/internal/chat/shimmer.d.ts.map +0 -1
- package/dist/internal/chat/shimmer.js +0 -22
- package/dist/internal/cn.d.ts +0 -3
- package/dist/internal/cn.d.ts.map +0 -1
- package/dist/internal/cn.js +0 -47
- package/dist/internal/ui/button-group.d.ts +0 -13
- package/dist/internal/ui/button-group.d.ts.map +0 -1
- package/dist/internal/ui/button-group.js +0 -26
- package/dist/internal/ui/button.d.ts +0 -12
- package/dist/internal/ui/button.d.ts.map +0 -1
- package/dist/internal/ui/button.js +0 -33
- package/dist/internal/ui/card.d.ts +0 -6
- package/dist/internal/ui/card.d.ts.map +0 -1
- package/dist/internal/ui/card.js +0 -14
- package/dist/internal/ui/drawer.d.ts +0 -8
- package/dist/internal/ui/drawer.d.ts.map +0 -1
- package/dist/internal/ui/drawer.js +0 -19
- package/dist/internal/ui/input-group.d.ts +0 -15
- package/dist/internal/ui/input-group.d.ts.map +0 -1
- package/dist/internal/ui/input-group.js +0 -44
- package/dist/internal/ui/input.d.ts +0 -3
- package/dist/internal/ui/input.d.ts.map +0 -1
- package/dist/internal/ui/input.js +0 -5
- package/dist/internal/ui/kbd.d.ts +0 -4
- package/dist/internal/ui/kbd.d.ts.map +0 -1
- package/dist/internal/ui/kbd.js +0 -8
- package/dist/internal/ui/separator.d.ts +0 -4
- package/dist/internal/ui/separator.d.ts.map +0 -1
- package/dist/internal/ui/separator.js +0 -7
- package/dist/internal/ui/sheet.d.ts +0 -13
- package/dist/internal/ui/sheet.d.ts.map +0 -1
- package/dist/internal/ui/sheet.js +0 -24
- package/dist/internal/ui/sonner.d.ts +0 -3
- package/dist/internal/ui/sonner.d.ts.map +0 -1
- package/dist/internal/ui/sonner.js +0 -20
- package/dist/internal/ui/spinner.d.ts +0 -3
- package/dist/internal/ui/spinner.d.ts.map +0 -1
- package/dist/internal/ui/spinner.js +0 -6
- package/dist/internal/ui/textarea.d.ts +0 -3
- package/dist/internal/ui/textarea.d.ts.map +0 -1
- package/dist/internal/ui/textarea.js +0 -5
- package/dist/internal/ui/tooltip.d.ts +0 -7
- package/dist/internal/ui/tooltip.d.ts.map +0 -1
- package/dist/internal/ui/tooltip.js +0 -16
- package/docs/pages/theme-aware-image.md +0 -59
- package/template/app/[lang]/(home)/components/centered-section.tsx +0 -32
- package/template/content/docs/theme-aware-image.mdx +0 -57
package/dist/mdx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAmB/C,OAAO,EAGL,KAAK,4BAA4B,IAAI,mBAAmB,EAGzD,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,2BAA2B,8EAAe,CAAC;AACxD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAoB,CAAC;AAC5D,eAAO,MAAM,mBAAmB;;;;;;;gCAAa,CAAC;AAC9C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAAa,CAAC;AAC1C,MAAM,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAEnD,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,sBA+BD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAC9B,aAAa,sBAAsB,KAClC,sBAA+D,CAAC;AAEnE,eAAO,MAAM,2BAA2B,GACtC,GAAG,eAAe,KAAK,CAAC,sBAAsB,GAAG,SAAS,CAAC,KAC1D,sBACkD,CAAC"}
|
package/dist/mdx.js
CHANGED
|
@@ -3,7 +3,7 @@ import { TypeTable } from "fumadocs-ui/components/type-table";
|
|
|
3
3
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
4
4
|
import { Callout, CalloutContainer, CalloutDescription, CalloutTitle, } from "./components/callout";
|
|
5
5
|
import { CodeBlock } from "./components/code-block";
|
|
6
|
-
import { CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, } from "./components/code-block-tabs";
|
|
6
|
+
import { CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, CompactCodeBlockTabs, } from "./components/code-block-tabs";
|
|
7
7
|
import { CopyPrompt } from "./components/copy-prompt";
|
|
8
8
|
import { Mermaid } from "./components/mermaid";
|
|
9
9
|
import { Video } from "./components/video";
|
|
@@ -18,6 +18,7 @@ export const getGeistdocsMDXComponents = (components) => ({
|
|
|
18
18
|
pre: CodeBlock,
|
|
19
19
|
a: ({ href, ...props }) => typeof href === "string" && href.startsWith("/") ? (_jsx(LocalizedLink, { className: "font-normal text-gray-1000 no-underline", href: href, ...props })) : (_jsx("a", { href: href, ...props, className: "font-normal text-gray-1000 no-underline" })),
|
|
20
20
|
CodeBlockTabs,
|
|
21
|
+
CompactCodeBlockTabs,
|
|
21
22
|
CodeBlockTabsList,
|
|
22
23
|
CodeBlockTabsTrigger,
|
|
23
24
|
CodeBlockTab,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-docs-bar.d.ts","sourceRoot":"","sources":["../src/mobile-docs-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mobile-docs-bar.d.ts","sourceRoot":"","sources":["../src/mobile-docs-bar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMzD,UAAU,kBAAkB;IAC1B,GAAG,CAAC,EAAE,eAAe,CAAC;CACvB;AAcD,eAAO,MAAM,aAAa,GAAI,SAAS,kBAAkB,4CA0ExD,CAAC"}
|
package/dist/mobile-docs-bar.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { IconFileText, IconMenuAlt } from "@vercel/geistcn-assets/icons";
|
|
3
4
|
import { useActiveAnchors } from "fumadocs-core/toc";
|
|
4
5
|
import { useState } from "react";
|
|
5
|
-
import { IconFileText } from "./assets/icons/icon-file-text";
|
|
6
|
-
import { IconMenuAlt } from "./assets/icons/icon-menu-alt";
|
|
7
6
|
import { Popover, PopoverContent, PopoverTrigger } from "./internal/ui/popover";
|
|
8
7
|
import { useGeistdocsSidebar } from "./sidebar";
|
|
9
8
|
// Text indentation per heading depth. Top-level items sit flush with the
|
package/dist/navbar.js
CHANGED
|
@@ -5,7 +5,8 @@ import { DesktopMenu } from "./internal/navbar/desktop-menu";
|
|
|
5
5
|
import { MobileMenu } from "./internal/navbar/mobile-menu";
|
|
6
6
|
import { NavbarLogo } from "./internal/navbar/navbar-logo";
|
|
7
7
|
import { NavbarShell } from "./internal/navbar/navbar-shell";
|
|
8
|
-
const SEARCH_BUTTON_CLASSES =
|
|
8
|
+
// const SEARCH_BUTTON_CLASSES =
|
|
9
|
+
// "group hidden h-10 justify-between pr-1.5 text-gray-900 @min-[1024px]:flex @min-[1024px]:h-8 @min-[1024px]:w-[150px] [&_[data-slot=kbd]]:transition-colors group-hover:[&_[data-slot=kbd]]:text-gray-1000";
|
|
9
10
|
export const Navbar = ({ config }) => {
|
|
10
11
|
const nav = config.nav ?? [];
|
|
11
12
|
const variant = config.navbarVariant ?? "oss";
|
|
@@ -16,5 +17,5 @@ export const Navbar = ({ config }) => {
|
|
|
16
17
|
// resolved and filtered inside the client menus below. Pass the raw custom
|
|
17
18
|
// list (if any) and the active product down; each menu drops the active one.
|
|
18
19
|
const activeProduct = config.navbarActiveProduct;
|
|
19
|
-
return (_jsx(NavbarShell, { children: _jsxs("div", { className: "@container mx-auto flex w-full max-w-[1448px] justify-between px-2", children: [_jsxs("div", { className: "flex select-none flex-row items-center", children: [isOss ? (_jsx(NavbarLogo, { activeProduct: activeProduct, className: "ml-4", href: config.logoHref, logo: config.logo, ossProducts: config.navbarOssProducts, variant: "oss" })) : (_jsx(NavbarLogo, { className: "ml-4", href: config.logoHref, logo: config.logo, variant: "standard" })), _jsx(DesktopMenu, { className: "@min-[1024px]:flex hidden", items: nav })] }), _jsxs("div", { className: "mr-4 flex flex-row items-center justify-end gap-2", children: [_jsx(SearchButton, { className:
|
|
20
|
+
return (_jsx(NavbarShell, { children: _jsxs("div", { className: "@container mx-auto flex w-full max-w-[1448px] justify-between px-2", children: [_jsxs("div", { className: "flex select-none flex-row items-center", children: [isOss ? (_jsx(NavbarLogo, { activeProduct: activeProduct, className: "ml-4", href: config.logoHref, logo: config.logo, ossProducts: config.navbarOssProducts, variant: "oss" })) : (_jsx(NavbarLogo, { className: "ml-4", href: config.logoHref, logo: config.logo, variant: "standard" })), _jsx(DesktopMenu, { className: "@min-[1024px]:flex hidden", items: nav })] }), _jsxs("div", { className: "mr-4 flex flex-row items-center justify-end gap-2", children: [_jsx(SearchButton, { className: "@min-[1024px]:flex hidden w-36" }), _jsx(AskAIButton, { className: "@min-[768px]:flex hidden shrink-0", size: "small", variant: "secondary" }), _jsx(AskAIButton, { className: "@min-[768px]:hidden", size: "small", variant: "secondary" }), showGithub ? (_jsx(GitHubButton, { className: "@min-[768px]:inline-flex hidden shrink-0", github: config.github })) : null, _jsx(MobileMenu, { activeProduct: activeProduct, githubUrl: githubUrl, nav: nav, ossProducts: config.navbarOssProducts, showOss: isOss })] })] }) }));
|
|
20
21
|
};
|
package/dist/pages/docs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/pages/docs.tsx"],"names":[],"mappings":"
|
|
1
|
+
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,QAAQ,CAAC;CAwDtB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAA4B,CAAC"}
|
package/dist/pages/docs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@vercel/geistcn/utils";
|
|
2
3
|
import Link from "fumadocs-core/link";
|
|
3
4
|
import { DocsBody as FumadocsDocsBody, DocsDescription as FumadocsDocsDescription, DocsPage as FumadocsDocsPage, DocsTitle as FumadocsDocsTitle, } from "fumadocs-ui/layouts/docs/page";
|
|
4
5
|
import { createRelativeLink } from "fumadocs-ui/mdx";
|
|
5
6
|
import { notFound } from "next/navigation";
|
|
6
7
|
import { getPublicPath, withBasePath } from "../config";
|
|
7
|
-
import { cn } from "../internal/cn";
|
|
8
8
|
import { DocsPageErrorBoundary } from "../internal/docs-page-error-boundary";
|
|
9
9
|
import { resolveDocumentTitle } from "../internal/document-title";
|
|
10
10
|
import { resolvePageMarkdownUrl as resolveInternalPageMarkdownUrl } from "../internal/markdown-url.js";
|
package/dist/source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,MAAM,EAEP,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,MAAM,EAEP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAG1B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAC;AAErC,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,KAAK,aAAa,GAAG,UAAU,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adocs-core/i18n";
|
|
2
2
|
import { loader, } from "fumadocs-core/source";
|
|
3
|
-
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
|
|
4
3
|
import { getPublicPath, withBasePath, } from "./config.js";
|
|
5
4
|
import { stripVersionRoutePrefix, } from "./internal/version-paths.js";
|
|
6
5
|
const MARKDOWN_LINK_PATTERN = /(\]\()(\/(?!\/)[^)\s]*)/g;
|
|
@@ -98,7 +97,6 @@ export const createSource = ({ docs, config, baseUrl = "/docs", id, label, markd
|
|
|
98
97
|
transformers: [pageTreeTransformer],
|
|
99
98
|
},
|
|
100
99
|
source: docs.toFumadocsSource(),
|
|
101
|
-
plugins: [lucideIconsPlugin()],
|
|
102
100
|
});
|
|
103
101
|
const getPageImage = (page) => {
|
|
104
102
|
const segments = [...page.slugs, "image.png"];
|
package/dist/versions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../src/versions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../src/versions.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAOhF,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAC;AAErC,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS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AAM,oBAAoB,GAAI,IAAI,SAAS,wBAAwB,EAAE,uEAOzE,yBAAyB,CAAC,IAAI,CAAC,mDA0FjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,0CAKpC,2BAA2B,4CAqC7B,CAAC"}
|
package/dist/versions.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "@vercel/geistcn/utils";
|
|
4
|
+
import { IconArchive, IconBox, IconCheck, IconChevronDown, } from "@vercel/geistcn-assets/icons";
|
|
4
5
|
import { usePathname, useRouter } from "next/navigation";
|
|
5
|
-
import { cn } from "./internal/cn";
|
|
6
6
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "./internal/ui/dropdown-menu";
|
|
7
7
|
import { resolveVersionSwitchPath, } from "./internal/version-paths.js";
|
|
8
8
|
const LEADING_SLASH_PATTERN = /^\//;
|
|
@@ -21,7 +21,7 @@ const SelectIcon = ({ active, children, }) => (_jsx("span", { className: cn("fle
|
|
|
21
21
|
? "border-blue-500 bg-blue-100 text-blue-900"
|
|
22
22
|
: "border-gray-alpha-400 bg-gray-100 text-gray-800"), children: children }));
|
|
23
23
|
const VersionIcon = ({ active }) => {
|
|
24
|
-
const Icon = active ?
|
|
24
|
+
const Icon = active ? IconBox : IconArchive;
|
|
25
25
|
return (_jsx(SelectIcon, { active: active, children: _jsx(Icon, { className: "size-5" }) }));
|
|
26
26
|
};
|
|
27
27
|
const defaultRenderIcon = ({ active, item, }) => (item.icon ? _jsx(SelectIcon, { active: active, children: item.icon }) : null);
|
|
@@ -73,10 +73,10 @@ export const GeistdocsRouteSelect = ({ ariaLabel = "Select route", className, cu
|
|
|
73
73
|
const currentDescription = currentItem
|
|
74
74
|
? getDescription({ active: true, item: currentItem })
|
|
75
75
|
: null;
|
|
76
|
-
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { "aria-label": ariaLabel, className: cn("group flex w-full items-center gap-2 rounded-md px-2 py-2 text-left outline-none transition-colors duration-150 ease-[cubic-bezier(0.175,0.885,0.32,1.1)] hover:bg-gray-alpha-100 focus-visible:shadow-[var(--ds-focus-ring)] active:bg-gray-alpha-300 data-[state=open]:bg-gray-alpha-100 motion-reduce:transition-none", className), type: "button", children: [currentItem ? renderIcon({ active: true, item: currentItem }) : null, _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate text-button-14 text-gray-1000", children: currentItem?.label ?? currentId }), currentDescription ? (_jsx("span", { className: "block truncate text-gray-900 text-label-13", children: currentDescription })) : null] }), _jsx(
|
|
76
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { "aria-label": ariaLabel, className: cn("group flex w-full items-center gap-2 rounded-md px-2 py-2 text-left outline-none transition-colors duration-150 ease-[cubic-bezier(0.175,0.885,0.32,1.1)] hover:bg-gray-alpha-100 focus-visible:shadow-[var(--ds-focus-ring)] active:bg-gray-alpha-300 data-[state=open]:bg-gray-alpha-100 motion-reduce:transition-none", className), type: "button", children: [currentItem ? renderIcon({ active: true, item: currentItem }) : null, _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate text-button-14 text-gray-1000", children: currentItem?.label ?? currentId }), currentDescription ? (_jsx("span", { className: "block truncate text-gray-900 text-label-13", children: currentDescription })) : null] }), _jsx(IconChevronDown, { className: "size-4 shrink-0 text-gray-900 transition-transform duration-150 ease-[cubic-bezier(0.175,0.885,0.32,1.1)] group-data-[state=open]:rotate-180 motion-reduce:transition-none" })] }) }), _jsx(DropdownMenuContent, { align: "start", className: "w-(--radix-dropdown-menu-trigger-width) min-w-64 rounded-xl bg-background-100 p-1 shadow-(--ds-shadow-menu)", children: items.map((item) => {
|
|
77
77
|
const active = item.id === currentId;
|
|
78
78
|
const description = getDescription({ active, item });
|
|
79
|
-
return (_jsxs(DropdownMenuItem, { "aria-current": active ? "page" : undefined, className: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2", onSelect: () => navigateToItem(item), children: [renderIcon({ active, item }), _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate text-button-14 text-gray-1000", children: item.label }), description ? (_jsx("span", { className: "block truncate text-gray-900 text-label-13", children: description })) : null] }), active ? _jsx(
|
|
79
|
+
return (_jsxs(DropdownMenuItem, { "aria-current": active ? "page" : undefined, className: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2", onSelect: () => navigateToItem(item), children: [renderIcon({ active, item }), _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate text-button-14 text-gray-1000", children: item.label }), description ? (_jsx("span", { className: "block truncate text-gray-900 text-label-13", children: description })) : null] }), active ? _jsx(IconCheck, { className: "size-4 text-blue-900" }) : null] }, item.id));
|
|
80
80
|
}) })] }));
|
|
81
81
|
};
|
|
82
82
|
export const GeistdocsVersionSelect = ({ className, current, paths, versions, }) => {
|
package/docs/agents.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Docs
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 1.25.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 1.25.1-canary.bd8995b so agents can understand the installed package without web access.
|
|
4
4
|
They are generated from `apps/template/content/docs` during the package build.
|
|
5
5
|
|
|
6
6
|
## How to use these files
|
|
@@ -43,4 +43,3 @@ They are generated from `apps/template/content/docs` during the package build.
|
|
|
43
43
|
- [Open in Chat](pages/open-in-chat.md): Transfer documentation context to AI chat platforms like ChatGPT, Claude, Cursor, and v0 with a single click.
|
|
44
44
|
- [RSS](pages/rss.md): An automatically generated RSS 2.0 feed that keeps users informed when documentation is published or updated.
|
|
45
45
|
- [Table of contents](pages/table-of-contents.md): Geistdocs builds the "On this page" outline from your headings, indents sub-headings under their parent, and tracks the active section along a straight vertical guide rail.
|
|
46
|
-
- [Theme-Aware Image](pages/theme-aware-image.md): A component that swaps images based on the active theme, built on top of Next.js Image.
|
package/docs/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Documentation
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 1.25.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 1.25.1-canary.bd8995b.
|
|
4
4
|
They describe how to build package-backed Geistdocs sites and how to use the package APIs from generated project adapters.
|
|
5
5
|
|
|
6
6
|
## Documentation Index
|
|
@@ -26,7 +26,6 @@ They describe how to build package-backed Geistdocs sites and how to use the pac
|
|
|
26
26
|
- [Open in Chat](pages/open-in-chat.md): Transfer documentation context to AI chat platforms like ChatGPT, Claude, Cursor, and v0 with a single click.
|
|
27
27
|
- [RSS](pages/rss.md): An automatically generated RSS 2.0 feed that keeps users informed when documentation is published or updated.
|
|
28
28
|
- [Table of contents](pages/table-of-contents.md): Geistdocs builds the "On this page" outline from your headings, indents sub-headings under their parent, and tracks the active section along a straight vertical guide rail.
|
|
29
|
-
- [Theme-Aware Image](pages/theme-aware-image.md): A component that swaps images based on the active theme, built on top of Next.js Image.
|
|
30
29
|
|
|
31
30
|
---
|
|
32
31
|
|
|
@@ -424,7 +423,7 @@ Fix unrelated build failures first. A migration is safer when the starting point
|
|
|
424
423
|
|
|
425
424
|
## Install Geistdocs
|
|
426
425
|
|
|
427
|
-
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting.
|
|
426
|
+
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting. Geistdocs requires Next.js 16.3.3 or later within 16.x. Earlier 16.3 releases can retain an optional catch-all route's index content after a client navigation to a child page when Cache Components and Partial Prefetching are enabled.
|
|
428
427
|
|
|
429
428
|
For an existing project, use your package manager directly:
|
|
430
429
|
|
|
@@ -757,16 +756,14 @@ For a base-path application whose root page is documentation, add `"/"` to the s
|
|
|
757
756
|
Tailwind CSS v4 requires `@source` entries for package components and related dependencies.
|
|
758
757
|
|
|
759
758
|
```css title="app/styles/geistdocs.css"
|
|
760
|
-
@import "
|
|
759
|
+
@import "@vercel/geistcn/tailwind.css";
|
|
760
|
+
@import "@vercel/geistcn/styles.css";
|
|
761
761
|
@import "fumadocs-ui/css/shadcn.css";
|
|
762
762
|
@import "fumadocs-ui/css/preset.css";
|
|
763
|
-
@import "
|
|
764
|
-
|
|
765
|
-
@source "../../node_modules/@vercel/geistdocs/dist/**/*.js";
|
|
766
|
-
@source "../../node_modules/streamdown/dist/*.js";
|
|
763
|
+
@import "@vercel/geistdocs/theme.css";
|
|
767
764
|
```
|
|
768
765
|
|
|
769
|
-
|
|
766
|
+
Geistcn owns the Geist tokens, theme, typography, preflight, and animation utilities. The Geistdocs theme entry point remains during the compatibility migration for documentation and Fumadocs integration rules and to source the compiled runtime dependencies.
|
|
770
767
|
|
|
771
768
|
## Handle environment variables
|
|
772
769
|
|
|
@@ -1205,7 +1202,9 @@ related:
|
|
|
1205
1202
|
|
|
1206
1203
|
Geistdocs supports MDX, a superset of Markdown that allows you to use JSX components within your documentation. This guide covers all the formatting options available.
|
|
1207
1204
|
|
|
1208
|
-
Help me write a Geistdocs MDX page. Use this page as a syntax reference and
|
|
1205
|
+
Help me write a Geistdocs MDX page. Use this page as a syntax reference and
|
|
1206
|
+
create an example page with frontmatter, headings, links, a code block, a
|
|
1207
|
+
`Callout`, and a `CopyPrompt` component.
|
|
1209
1208
|
|
|
1210
1209
|
## Frontmatter
|
|
1211
1210
|
|
|
@@ -1386,6 +1385,78 @@ export const Button = ({ children }) => {
|
|
|
1386
1385
|
};
|
|
1387
1386
|
```
|
|
1388
1387
|
|
|
1388
|
+
### Tabs and switchers
|
|
1389
|
+
|
|
1390
|
+
Use consecutive fences with `tab` metadata for code tabs that expose every
|
|
1391
|
+
option at once:
|
|
1392
|
+
|
|
1393
|
+
````md
|
|
1394
|
+
```ts tab="TypeScript" title="example.ts"
|
|
1395
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1396
|
+
```
|
|
1397
|
+
|
|
1398
|
+
```js tab="JavaScript" title="example.js"
|
|
1399
|
+
export const greeting = "Hello from JavaScript";
|
|
1400
|
+
```
|
|
1401
|
+
````
|
|
1402
|
+
|
|
1403
|
+
This renders as:
|
|
1404
|
+
|
|
1405
|
+
```ts tab="TypeScript" title="example.ts"
|
|
1406
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1407
|
+
```
|
|
1408
|
+
|
|
1409
|
+
```js tab="JavaScript" title="example.js"
|
|
1410
|
+
export const greeting = "Hello from JavaScript";
|
|
1411
|
+
```
|
|
1412
|
+
|
|
1413
|
+
Wrap the same fences in `<CodeBlockTabs compact>` to move the selector into the
|
|
1414
|
+
code-block header:
|
|
1415
|
+
|
|
1416
|
+
````mdx
|
|
1417
|
+
<CompactCodeBlockTabs defaultValue="TypeScript">
|
|
1418
|
+
<CodeBlockTabsList>
|
|
1419
|
+
<CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
|
|
1420
|
+
<CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
|
|
1421
|
+
</CodeBlockTabsList>
|
|
1422
|
+
<CodeBlockTab value="TypeScript">
|
|
1423
|
+
```ts title="example.ts"
|
|
1424
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1425
|
+
```
|
|
1426
|
+
</CodeBlockTab>
|
|
1427
|
+
<CodeBlockTab value="JavaScript">
|
|
1428
|
+
```js title="example.js"
|
|
1429
|
+
export const greeting = "Hello from JavaScript";
|
|
1430
|
+
```
|
|
1431
|
+
</CodeBlockTab>
|
|
1432
|
+
</CompactCodeBlockTabs>
|
|
1433
|
+
````
|
|
1434
|
+
|
|
1435
|
+
This renders as:
|
|
1436
|
+
|
|
1437
|
+
<CompactCodeBlockTabs defaultValue="TypeScript">
|
|
1438
|
+
<CodeBlockTabsList>
|
|
1439
|
+
<CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
|
|
1440
|
+
<CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
|
|
1441
|
+
</CodeBlockTabsList>
|
|
1442
|
+
<CodeBlockTab value="TypeScript">
|
|
1443
|
+
```ts title="example.ts"
|
|
1444
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1445
|
+
```
|
|
1446
|
+
</CodeBlockTab>
|
|
1447
|
+
<CodeBlockTab value="JavaScript">
|
|
1448
|
+
```js title="example.js"
|
|
1449
|
+
export const greeting = "Hello from JavaScript";
|
|
1450
|
+
```
|
|
1451
|
+
</CodeBlockTab>
|
|
1452
|
+
</CompactCodeBlockTabs>
|
|
1453
|
+
|
|
1454
|
+
When migrating an existing site such as next-site, translate adjacent
|
|
1455
|
+
`switcher` fences to `tab="TypeScript"` and `tab="JavaScript"`, then wrap the
|
|
1456
|
+
pair with `<CodeBlockTabs compact>`. Import `@vercel/geistdocs/styles.css` (or
|
|
1457
|
+
`theme.css` with the documented Geist dependencies) so Tailwind scans the
|
|
1458
|
+
package's compiled components and emits the tab layout utilities.
|
|
1459
|
+
|
|
1389
1460
|
### Framework icons
|
|
1390
1461
|
|
|
1391
1462
|
Append `#<framework>` to the title to show a framework logo instead of the
|
|
@@ -1394,22 +1465,22 @@ values are `#next` / `#nextjs` and `#svelte` / `#sveltekit`:
|
|
|
1394
1465
|
|
|
1395
1466
|
````md
|
|
1396
1467
|
```ts title="flags.ts#next"
|
|
1397
|
-
import { flag } from
|
|
1468
|
+
import { flag } from "flags/next";
|
|
1398
1469
|
```
|
|
1399
1470
|
|
|
1400
1471
|
```ts title="flags.ts#svelte"
|
|
1401
|
-
import { flag } from
|
|
1472
|
+
import { flag } from "flags/sveltekit";
|
|
1402
1473
|
```
|
|
1403
1474
|
````
|
|
1404
1475
|
|
|
1405
1476
|
This renders as:
|
|
1406
1477
|
|
|
1407
1478
|
```ts title="flags.ts#next"
|
|
1408
|
-
import { flag } from
|
|
1479
|
+
import { flag } from "flags/next";
|
|
1409
1480
|
```
|
|
1410
1481
|
|
|
1411
1482
|
```ts title="flags.ts#svelte"
|
|
1412
|
-
import { flag } from
|
|
1483
|
+
import { flag } from "flags/sveltekit";
|
|
1413
1484
|
```
|
|
1414
1485
|
|
|
1415
1486
|
### Line Numbers
|
|
@@ -1898,7 +1969,7 @@ Each version can define an `icon` to override the default current/previous versi
|
|
|
1898
1969
|
Use `GeistdocsRouteSelect` for framework, product, or route switchers that should not use version-specific labels:
|
|
1899
1970
|
|
|
1900
1971
|
```tsx
|
|
1901
|
-
import {
|
|
1972
|
+
import { LogoIconNextSvg, LogoSvelte } from "@vercel/geistcn-assets/logos";
|
|
1902
1973
|
import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
1903
1974
|
|
|
1904
1975
|
<GeistdocsRouteSelect
|
|
@@ -1909,14 +1980,14 @@ import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
|
1909
1980
|
id: "nextjs",
|
|
1910
1981
|
label: "Next.js",
|
|
1911
1982
|
description: "React framework",
|
|
1912
|
-
icon: <
|
|
1983
|
+
icon: <LogoIconNextSvg size={18} />,
|
|
1913
1984
|
href: "/:path*",
|
|
1914
1985
|
},
|
|
1915
1986
|
{
|
|
1916
1987
|
id: "sveltekit",
|
|
1917
1988
|
label: "SvelteKit",
|
|
1918
1989
|
description: "Svelte framework",
|
|
1919
|
-
icon: <
|
|
1990
|
+
icon: <LogoSvelte height={18} />,
|
|
1920
1991
|
routePrefix: "/sveltekit",
|
|
1921
1992
|
href: "/sveltekit/:path*",
|
|
1922
1993
|
},
|
|
@@ -3607,66 +3678,3 @@ On mobile, Geistdocs replaces the sidebar outline with a compact menu in the pag
|
|
|
3607
3678
|
|
|
3608
3679
|
Keep headings short and descriptive so the outline reads like a summary of the page. Name each heading after the goal of its section, and avoid stacking two headings with no content between them.
|
|
3609
3680
|
|
|
3610
|
-
|
|
3611
|
-
---
|
|
3612
|
-
|
|
3613
|
-
---
|
|
3614
|
-
title: Theme-Aware Image
|
|
3615
|
-
description: Display different images based on the user's light or dark theme preference
|
|
3616
|
-
type: reference
|
|
3617
|
-
summary: A component that swaps images based on the active theme, built on top of Next.js Image.
|
|
3618
|
-
url: /docs/theme-aware-image
|
|
3619
|
-
source: apps/template/content/docs/theme-aware-image.mdx
|
|
3620
|
-
prerequisites:
|
|
3621
|
-
- /docs/getting-started
|
|
3622
|
-
- /docs/provider
|
|
3623
|
-
related:
|
|
3624
|
-
- /docs/syntax
|
|
3625
|
-
- /docs/configuration
|
|
3626
|
-
---
|
|
3627
|
-
|
|
3628
|
-
# Theme-Aware Image
|
|
3629
|
-
|
|
3630
|
-
The `ThemeAwareImage` component renders different images depending on whether the user is viewing your documentation in light or dark mode. It extends the Next.js `Image` component, so you get all the same optimization benefits like lazy loading, responsive sizing, and format conversion.
|
|
3631
|
-
|
|
3632
|
-
Help me add a theme-aware image to a Geistdocs MDX page. Create a usage example with light and dark image sources, alt text, width, and height, then explain where to place the image files.
|
|
3633
|
-
|
|
3634
|
-
## Usage
|
|
3635
|
-
|
|
3636
|
-
Import the component and pass a `src` object with `light` and `dark` variants:
|
|
3637
|
-
|
|
3638
|
-
```tsx
|
|
3639
|
-
import { ThemeAwareImage } from "@vercel/geistdocs/components/theme-aware-image";
|
|
3640
|
-
|
|
3641
|
-
<ThemeAwareImage
|
|
3642
|
-
src={{
|
|
3643
|
-
light: "/images/diagram-light.png",
|
|
3644
|
-
dark: "/images/diagram-dark.png",
|
|
3645
|
-
}}
|
|
3646
|
-
alt="Architecture diagram"
|
|
3647
|
-
width={800}
|
|
3648
|
-
height={400}
|
|
3649
|
-
/>
|
|
3650
|
-
```
|
|
3651
|
-
|
|
3652
|
-
The component reads the current theme from `next-themes` and resolves the correct image source automatically. All standard Next.js `Image` props (such as `width`, `height`, `alt`, `priority`, and `className`) are supported.
|
|
3653
|
-
|
|
3654
|
-
## How it works
|
|
3655
|
-
|
|
3656
|
-
`ThemeAwareImage` uses the `resolvedTheme` value from the `useTheme` hook provided by `next-themes`. This ensures it responds to the actual rendered theme, even when the user's preference is set to "system".
|
|
3657
|
-
|
|
3658
|
-
- When `resolvedTheme` is `"dark"`, the `src.dark` image is displayed.
|
|
3659
|
-
- Otherwise, the `src.light` image is used.
|
|
3660
|
-
|
|
3661
|
-
Because this component relies on client-side theme detection, it is a client component (`"use client"`).
|
|
3662
|
-
|
|
3663
|
-
## Props
|
|
3664
|
-
|
|
3665
|
-
| Prop | Type | Description |
|
|
3666
|
-
| --- | --- | --- |
|
|
3667
|
-
| `src` | `{ light: ImageProps["src"]; dark: ImageProps["src"] }` | An object containing the light and dark image sources |
|
|
3668
|
-
| `alt` | `string` | Accessible alt text for the image |
|
|
3669
|
-
| `width` | `number` | The width of the image in pixels |
|
|
3670
|
-
| `height` | `number` | The height of the image in pixels |
|
|
3671
|
-
| `...rest` | `ImageProps` | Any additional props supported by the Next.js `Image` component |
|
|
3672
|
-
|
package/docs/manifest.json
CHANGED
|
@@ -196,17 +196,8 @@
|
|
|
196
196
|
"title": "Table of contents",
|
|
197
197
|
"type": "reference",
|
|
198
198
|
"url": "/docs/table-of-contents"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"description": "Display different images based on the user's light or dark theme preference",
|
|
202
|
-
"path": "pages/theme-aware-image.md",
|
|
203
|
-
"source": "apps/template/content/docs/theme-aware-image.mdx",
|
|
204
|
-
"summary": "A component that swaps images based on the active theme, built on top of Next.js Image.",
|
|
205
|
-
"title": "Theme-Aware Image",
|
|
206
|
-
"type": "reference",
|
|
207
|
-
"url": "/docs/theme-aware-image"
|
|
208
199
|
}
|
|
209
200
|
],
|
|
210
201
|
"source": "apps/template/content/docs",
|
|
211
|
-
"version": "1.25.
|
|
202
|
+
"version": "1.25.1-canary.bd8995b"
|
|
212
203
|
}
|
package/docs/pages/migration.md
CHANGED
|
@@ -44,7 +44,7 @@ Fix unrelated build failures first. A migration is safer when the starting point
|
|
|
44
44
|
|
|
45
45
|
## Install Geistdocs
|
|
46
46
|
|
|
47
|
-
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting.
|
|
47
|
+
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting. Geistdocs requires Next.js 16.3.3 or later within 16.x. Earlier 16.3 releases can retain an optional catch-all route's index content after a client navigation to a child page when Cache Components and Partial Prefetching are enabled.
|
|
48
48
|
|
|
49
49
|
For an existing project, use your package manager directly:
|
|
50
50
|
|
|
@@ -377,16 +377,14 @@ For a base-path application whose root page is documentation, add `"/"` to the s
|
|
|
377
377
|
Tailwind CSS v4 requires `@source` entries for package components and related dependencies.
|
|
378
378
|
|
|
379
379
|
```css title="app/styles/geistdocs.css"
|
|
380
|
-
@import "
|
|
380
|
+
@import "@vercel/geistcn/tailwind.css";
|
|
381
|
+
@import "@vercel/geistcn/styles.css";
|
|
381
382
|
@import "fumadocs-ui/css/shadcn.css";
|
|
382
383
|
@import "fumadocs-ui/css/preset.css";
|
|
383
|
-
@import "
|
|
384
|
-
|
|
385
|
-
@source "../../node_modules/@vercel/geistdocs/dist/**/*.js";
|
|
386
|
-
@source "../../node_modules/streamdown/dist/*.js";
|
|
384
|
+
@import "@vercel/geistdocs/theme.css";
|
|
387
385
|
```
|
|
388
386
|
|
|
389
|
-
|
|
387
|
+
Geistcn owns the Geist tokens, theme, typography, preflight, and animation utilities. The Geistdocs theme entry point remains during the compatibility migration for documentation and Fumadocs integration rules and to source the compiled runtime dependencies.
|
|
390
388
|
|
|
391
389
|
## Handle environment variables
|
|
392
390
|
|
package/docs/pages/syntax.md
CHANGED
|
@@ -15,7 +15,9 @@ related:
|
|
|
15
15
|
|
|
16
16
|
Geistdocs supports MDX, a superset of Markdown that allows you to use JSX components within your documentation. This guide covers all the formatting options available.
|
|
17
17
|
|
|
18
|
-
Help me write a Geistdocs MDX page. Use this page as a syntax reference and
|
|
18
|
+
Help me write a Geistdocs MDX page. Use this page as a syntax reference and
|
|
19
|
+
create an example page with frontmatter, headings, links, a code block, a
|
|
20
|
+
`Callout`, and a `CopyPrompt` component.
|
|
19
21
|
|
|
20
22
|
## Frontmatter
|
|
21
23
|
|
|
@@ -196,6 +198,78 @@ export const Button = ({ children }) => {
|
|
|
196
198
|
};
|
|
197
199
|
```
|
|
198
200
|
|
|
201
|
+
### Tabs and switchers
|
|
202
|
+
|
|
203
|
+
Use consecutive fences with `tab` metadata for code tabs that expose every
|
|
204
|
+
option at once:
|
|
205
|
+
|
|
206
|
+
````md
|
|
207
|
+
```ts tab="TypeScript" title="example.ts"
|
|
208
|
+
export const greeting: string = "Hello from TypeScript";
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
```js tab="JavaScript" title="example.js"
|
|
212
|
+
export const greeting = "Hello from JavaScript";
|
|
213
|
+
```
|
|
214
|
+
````
|
|
215
|
+
|
|
216
|
+
This renders as:
|
|
217
|
+
|
|
218
|
+
```ts tab="TypeScript" title="example.ts"
|
|
219
|
+
export const greeting: string = "Hello from TypeScript";
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
```js tab="JavaScript" title="example.js"
|
|
223
|
+
export const greeting = "Hello from JavaScript";
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Wrap the same fences in `<CodeBlockTabs compact>` to move the selector into the
|
|
227
|
+
code-block header:
|
|
228
|
+
|
|
229
|
+
````mdx
|
|
230
|
+
<CompactCodeBlockTabs defaultValue="TypeScript">
|
|
231
|
+
<CodeBlockTabsList>
|
|
232
|
+
<CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
|
|
233
|
+
<CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
|
|
234
|
+
</CodeBlockTabsList>
|
|
235
|
+
<CodeBlockTab value="TypeScript">
|
|
236
|
+
```ts title="example.ts"
|
|
237
|
+
export const greeting: string = "Hello from TypeScript";
|
|
238
|
+
```
|
|
239
|
+
</CodeBlockTab>
|
|
240
|
+
<CodeBlockTab value="JavaScript">
|
|
241
|
+
```js title="example.js"
|
|
242
|
+
export const greeting = "Hello from JavaScript";
|
|
243
|
+
```
|
|
244
|
+
</CodeBlockTab>
|
|
245
|
+
</CompactCodeBlockTabs>
|
|
246
|
+
````
|
|
247
|
+
|
|
248
|
+
This renders as:
|
|
249
|
+
|
|
250
|
+
<CompactCodeBlockTabs defaultValue="TypeScript">
|
|
251
|
+
<CodeBlockTabsList>
|
|
252
|
+
<CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
|
|
253
|
+
<CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
|
|
254
|
+
</CodeBlockTabsList>
|
|
255
|
+
<CodeBlockTab value="TypeScript">
|
|
256
|
+
```ts title="example.ts"
|
|
257
|
+
export const greeting: string = "Hello from TypeScript";
|
|
258
|
+
```
|
|
259
|
+
</CodeBlockTab>
|
|
260
|
+
<CodeBlockTab value="JavaScript">
|
|
261
|
+
```js title="example.js"
|
|
262
|
+
export const greeting = "Hello from JavaScript";
|
|
263
|
+
```
|
|
264
|
+
</CodeBlockTab>
|
|
265
|
+
</CompactCodeBlockTabs>
|
|
266
|
+
|
|
267
|
+
When migrating an existing site such as next-site, translate adjacent
|
|
268
|
+
`switcher` fences to `tab="TypeScript"` and `tab="JavaScript"`, then wrap the
|
|
269
|
+
pair with `<CodeBlockTabs compact>`. Import `@vercel/geistdocs/styles.css` (or
|
|
270
|
+
`theme.css` with the documented Geist dependencies) so Tailwind scans the
|
|
271
|
+
package's compiled components and emits the tab layout utilities.
|
|
272
|
+
|
|
199
273
|
### Framework icons
|
|
200
274
|
|
|
201
275
|
Append `#<framework>` to the title to show a framework logo instead of the
|
|
@@ -204,22 +278,22 @@ values are `#next` / `#nextjs` and `#svelte` / `#sveltekit`:
|
|
|
204
278
|
|
|
205
279
|
````md
|
|
206
280
|
```ts title="flags.ts#next"
|
|
207
|
-
import { flag } from
|
|
281
|
+
import { flag } from "flags/next";
|
|
208
282
|
```
|
|
209
283
|
|
|
210
284
|
```ts title="flags.ts#svelte"
|
|
211
|
-
import { flag } from
|
|
285
|
+
import { flag } from "flags/sveltekit";
|
|
212
286
|
```
|
|
213
287
|
````
|
|
214
288
|
|
|
215
289
|
This renders as:
|
|
216
290
|
|
|
217
291
|
```ts title="flags.ts#next"
|
|
218
|
-
import { flag } from
|
|
292
|
+
import { flag } from "flags/next";
|
|
219
293
|
```
|
|
220
294
|
|
|
221
295
|
```ts title="flags.ts#svelte"
|
|
222
|
-
import { flag } from
|
|
296
|
+
import { flag } from "flags/sveltekit";
|
|
223
297
|
```
|
|
224
298
|
|
|
225
299
|
### Line Numbers
|