@vercel/geistdocs 1.25.0 → 1.25.1-canary.4e75e60
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/blockquote.d.ts +3 -0
- package/dist/components/blockquote.d.ts.map +1 -0
- package/dist/components/blockquote.js +3 -0
- package/dist/components/callout.d.ts +13 -10
- package/dist/components/callout.d.ts.map +1 -1
- package/dist/components/callout.js +7 -7
- 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 +30 -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 +18 -25
- package/dist/components/copy-prompt.d.ts +2 -1
- package/dist/components/copy-prompt.d.ts.map +1 -1
- package/dist/components/copy-prompt.js +5 -5
- package/dist/components/heading.d.ts +7 -0
- package/dist/components/heading.d.ts.map +1 -0
- package/dist/components/heading.js +14 -0
- package/dist/components/mermaid.js +1 -1
- package/dist/components/table.d.ts +3 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +3 -0
- package/dist/controls.d.ts +8 -4
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +16 -15
- 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/context.d.ts +2 -0
- package/dist/internal/chat/context.d.ts.map +1 -1
- package/dist/internal/chat/context.js +24 -3
- 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 +21 -0
- package/dist/internal/chat/loading-skeleton.d.ts +7 -0
- package/dist/internal/chat/loading-skeleton.d.ts.map +1 -0
- package/dist/internal/chat/loading-skeleton.js +46 -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 +26 -6
- 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 +36 -33
- 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 +9 -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/mousedown-navigation-utils.d.ts +5 -0
- package/dist/internal/mousedown-navigation-utils.d.ts.map +1 -0
- package/dist/internal/mousedown-navigation-utils.js +95 -0
- package/dist/internal/mousedown-navigation.d.ts +10 -0
- package/dist/internal/mousedown-navigation.d.ts.map +1 -0
- package/dist/internal/mousedown-navigation.js +42 -0
- 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 +11 -16
- 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 +3 -2
- package/dist/internal/page-actions-client.d.ts.map +1 -1
- package/dist/internal/page-actions-client.js +52 -49
- 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 +36 -12
- package/dist/internal/search.d.ts.map +1 -1
- package/dist/internal/search.js +2 -2
- package/dist/internal/sidebar-responsive.d.ts +0 -1
- package/dist/internal/sidebar-responsive.d.ts.map +1 -1
- package/dist/internal/sidebar-responsive.js +0 -9
- 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 +80 -53
- package/dist/internal/table-of-contents.d.ts.map +1 -1
- package/dist/internal/table-of-contents.js +1 -1
- package/dist/internal/toc-items.d.ts.map +1 -1
- package/dist/internal/toc-items.js +17 -7
- package/dist/internal/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/internal/ui/dropdown-menu.js +8 -8
- package/dist/internal/ui/navigation-menu.d.ts.map +1 -1
- package/dist/internal/ui/navigation-menu.js +4 -4
- 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/internal/use-mobile.d.ts.map +1 -1
- package/dist/internal/use-mobile.js +2 -12
- package/dist/layout.d.ts +1 -0
- package/dist/layout.d.ts.map +1 -1
- package/dist/layout.js +3 -1
- package/dist/mdx.d.ts.map +1 -1
- package/dist/mdx.js +15 -2
- 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 +12 -4
- package/dist/routes/chat.d.ts +1 -1
- package/dist/routes/chat.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 +216 -89
- package/docs/manifest.json +1 -10
- package/docs/pages/ask-ai.md +2 -2
- package/docs/pages/md.md +1 -1
- package/docs/pages/migration.md +5 -7
- package/docs/pages/syntax.md +204 -11
- package/docs/pages/versioned-docs.md +3 -3
- package/docs/sitemap.md +0 -1
- package/package.json +12 -103
- 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 +11 -4
- package/template/app/styles/geistdocs.css +18 -15
- package/template/components/ui/button.tsx +1 -1
- package/template/content/docs/ask-ai.cn.mdx +2 -2
- package/template/content/docs/ask-ai.mdx +2 -2
- package/template/content/docs/configuration.cn.mdx +2 -2
- package/template/content/docs/md.mdx +1 -1
- package/template/content/docs/migration.mdx +5 -7
- package/template/content/docs/syntax.mdx +210 -11
- 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 +6 -8
- package/theme.css +39 -695
- 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/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.4e75e60.
|
|
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
|
|
|
@@ -1257,11 +1256,17 @@ Headings automatically generate anchor links for navigation and deep linking.
|
|
|
1257
1256
|
|
|
1258
1257
|
Create unordered lists with `-`, `*`, or `+`:
|
|
1259
1258
|
|
|
1260
|
-
|
|
1261
|
-
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1259
|
+
```md
|
|
1260
|
+
- Install the required packages
|
|
1261
|
+
- Configure your project
|
|
1262
|
+
- Start the development server
|
|
1263
|
+
```
|
|
1264
|
+
|
|
1265
|
+
This renders as:
|
|
1266
|
+
|
|
1267
|
+
- Install the required packages
|
|
1268
|
+
- Configure your project
|
|
1269
|
+
- Start the development server
|
|
1265
1270
|
|
|
1266
1271
|
Create ordered lists with numbers:
|
|
1267
1272
|
|
|
@@ -1273,7 +1278,91 @@ Create ordered lists with numbers:
|
|
|
1273
1278
|
|
|
1274
1279
|
Use `>` to create blockquotes:
|
|
1275
1280
|
|
|
1276
|
-
>
|
|
1281
|
+
> **Watch:** Learn more about how to use `next/image` → [YouTube (9 minutes)](https://youtu.be/IU_qq_c_lKA).
|
|
1282
|
+
|
|
1283
|
+
### Callouts
|
|
1284
|
+
|
|
1285
|
+
Use `<Callout>` for a highlighted informational note:
|
|
1286
|
+
|
|
1287
|
+
```mdx
|
|
1288
|
+
<Callout>This is automatically set when deploying to Vercel.</Callout>
|
|
1289
|
+
```
|
|
1290
|
+
|
|
1291
|
+
This renders as:
|
|
1292
|
+
|
|
1293
|
+
> This is automatically set when deploying to Vercel.
|
|
1294
|
+
|
|
1295
|
+
Callouts can also contain a title and lists:
|
|
1296
|
+
|
|
1297
|
+
> Note:
|
|
1298
|
+
- The `App Router` uses [React canary
|
|
1299
|
+
releases](https://react.dev/blog/2023/05/03/react-canaries) built-in, which
|
|
1300
|
+
include all the stable React 19 changes, as well as newer features being
|
|
1301
|
+
validated in frameworks, but you should still declare react and react-dom in
|
|
1302
|
+
package.json for tooling and ecosystem compatibility.
|
|
1303
|
+
- The `Pages Router` uses the React version from your `package.json`.
|
|
1304
|
+
|
|
1305
|
+
Callouts support rich inline Markdown, including code, emphasis, and links:
|
|
1306
|
+
|
|
1307
|
+
```mdx
|
|
1308
|
+
<Callout title="Good to know">
|
|
1309
|
+
Global styles can be imported into any layout, page, or component inside the
|
|
1310
|
+
`app` directory. However, since Next.js uses React's built-in support for
|
|
1311
|
+
stylesheets to integrate with Suspense, this currently does not remove
|
|
1312
|
+
stylesheets as you navigate between routes which can lead to conflicts. We
|
|
1313
|
+
recommend using global styles for _truly global_ CSS (like Tailwind's base
|
|
1314
|
+
styles), [Tailwind CSS](https://tailwindcss.com) for component styling, and
|
|
1315
|
+
[CSS Modules](https://nextjs.org/docs/app/getting-started/css#css-modules) for
|
|
1316
|
+
custom scoped CSS when needed.
|
|
1317
|
+
</Callout>
|
|
1318
|
+
```
|
|
1319
|
+
|
|
1320
|
+
This renders as:
|
|
1321
|
+
|
|
1322
|
+
> Note:
|
|
1323
|
+
Global styles can be imported into any layout, page, or component inside the
|
|
1324
|
+
`app` directory. However, since Next.js uses React's built-in support for
|
|
1325
|
+
stylesheets to integrate with Suspense, this currently does not remove
|
|
1326
|
+
stylesheets as you navigate between routes which can lead to conflicts. We
|
|
1327
|
+
recommend using global styles for _truly global_ CSS (like Tailwind's base
|
|
1328
|
+
styles), [Tailwind CSS](https://tailwindcss.com) for component styling, and
|
|
1329
|
+
[CSS Modules](https://nextjs.org/docs/app/getting-started/css#css-modules) for
|
|
1330
|
+
custom scoped CSS when needed.
|
|
1331
|
+
|
|
1332
|
+
### Copy Prompts
|
|
1333
|
+
|
|
1334
|
+
Short prompts render in full without an expansion control:
|
|
1335
|
+
|
|
1336
|
+
```mdx
|
|
1337
|
+
<CopyPrompt text="Summarize this documentation page and list the key concepts.">
|
|
1338
|
+
Summarize this documentation page and list the key concepts.
|
|
1339
|
+
</CopyPrompt>
|
|
1340
|
+
```
|
|
1341
|
+
|
|
1342
|
+
This renders as:
|
|
1343
|
+
|
|
1344
|
+
Summarize this documentation page and list the key concepts.
|
|
1345
|
+
|
|
1346
|
+
Long prompts initially show a preview with a **Show more** control:
|
|
1347
|
+
|
|
1348
|
+
```mdx
|
|
1349
|
+
<CopyPrompt collapsible text="Write a detailed migration plan for this project.">
|
|
1350
|
+
Write a detailed migration plan for this project. Include prerequisites,
|
|
1351
|
+
implementation steps, validation, rollback guidance, and common pitfalls.
|
|
1352
|
+
</CopyPrompt>
|
|
1353
|
+
```
|
|
1354
|
+
|
|
1355
|
+
Set the boolean `collapsible` prop when the prompt should initially render as a
|
|
1356
|
+
two-line preview. This renders as:
|
|
1357
|
+
|
|
1358
|
+
Review this Geistdocs project in detail. Explain how the `@vercel/geistdocs`
|
|
1359
|
+
package, application layouts, local adapter files, source configuration,
|
|
1360
|
+
`content/docs` directory, navigation metadata, MDX components, syntax
|
|
1361
|
+
highlighting, search routes, and deployment configuration work together.
|
|
1362
|
+
Then identify the safest first files to edit, describe the effect of each
|
|
1363
|
+
change, call out common mistakes, and propose a step-by-step plan for
|
|
1364
|
+
customizing the documentation site without breaking routing, generated
|
|
1365
|
+
Markdown, or accessibility behavior.
|
|
1277
1366
|
|
|
1278
1367
|
### Links
|
|
1279
1368
|
|
|
@@ -1282,6 +1371,25 @@ Create links with `[text](url)`:
|
|
|
1282
1371
|
- [External link](https://vercel.com)
|
|
1283
1372
|
- [Internal link](/docs/getting-started)
|
|
1284
1373
|
|
|
1374
|
+
Use an absolute `https://` or `http://` URL for an external destination. Use a
|
|
1375
|
+
root-relative path beginning with `/` for an internal link. Both use the same
|
|
1376
|
+
visual styling:
|
|
1377
|
+
|
|
1378
|
+
```md
|
|
1379
|
+
[External link](https://vercel.com)
|
|
1380
|
+
[Internal link](/docs/getting-started)
|
|
1381
|
+
```
|
|
1382
|
+
|
|
1383
|
+
Links can also contain inline code:
|
|
1384
|
+
|
|
1385
|
+
```md
|
|
1386
|
+
Run independent requests in parallel with [`Promise.all`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise/all).
|
|
1387
|
+
```
|
|
1388
|
+
|
|
1389
|
+
This renders as:
|
|
1390
|
+
|
|
1391
|
+
Run independent requests in parallel with [`Promise.all`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise/all).
|
|
1392
|
+
|
|
1285
1393
|
### Images
|
|
1286
1394
|
|
|
1287
1395
|
Add images with ``:
|
|
@@ -1314,6 +1422,16 @@ This renders as:
|
|
|
1314
1422
|
| GFM | GitHub extensions | Supported |
|
|
1315
1423
|
| MDX | JSX in Markdown | Supported |
|
|
1316
1424
|
|
|
1425
|
+
Tables can also include inline code, as commonly used for file references:
|
|
1426
|
+
|
|
1427
|
+
| File | Description |
|
|
1428
|
+
| -------------------- | ------------------------------------------------ |
|
|
1429
|
+
| `next.config.js` | Configuration file for Next.js |
|
|
1430
|
+
| `package.json` | Project dependencies and scripts |
|
|
1431
|
+
| `instrumentation.ts` | OpenTelemetry and instrumentation file |
|
|
1432
|
+
| `.env.local` | Local environment variables |
|
|
1433
|
+
| `tsconfig.json` | Configuration file for TypeScript |
|
|
1434
|
+
|
|
1317
1435
|
### Task Lists
|
|
1318
1436
|
|
|
1319
1437
|
Create interactive task lists:
|
|
@@ -1386,6 +1504,78 @@ export const Button = ({ children }) => {
|
|
|
1386
1504
|
};
|
|
1387
1505
|
```
|
|
1388
1506
|
|
|
1507
|
+
### Tabs and switchers
|
|
1508
|
+
|
|
1509
|
+
Use consecutive fences with `tab` metadata for code tabs that expose every
|
|
1510
|
+
option at once:
|
|
1511
|
+
|
|
1512
|
+
````md
|
|
1513
|
+
```ts tab="TypeScript" title="example.ts"
|
|
1514
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1515
|
+
```
|
|
1516
|
+
|
|
1517
|
+
```js tab="JavaScript" title="example.js"
|
|
1518
|
+
export const greeting = "Hello from JavaScript";
|
|
1519
|
+
```
|
|
1520
|
+
````
|
|
1521
|
+
|
|
1522
|
+
This renders as:
|
|
1523
|
+
|
|
1524
|
+
```ts tab="TypeScript" title="example.ts"
|
|
1525
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1526
|
+
```
|
|
1527
|
+
|
|
1528
|
+
```js tab="JavaScript" title="example.js"
|
|
1529
|
+
export const greeting = "Hello from JavaScript";
|
|
1530
|
+
```
|
|
1531
|
+
|
|
1532
|
+
Wrap the same fences in `<CodeBlockTabs compact>` to move the selector into the
|
|
1533
|
+
code-block header:
|
|
1534
|
+
|
|
1535
|
+
````mdx
|
|
1536
|
+
<CompactCodeBlockTabs defaultValue="TypeScript">
|
|
1537
|
+
<CodeBlockTabsList>
|
|
1538
|
+
<CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
|
|
1539
|
+
<CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
|
|
1540
|
+
</CodeBlockTabsList>
|
|
1541
|
+
<CodeBlockTab value="TypeScript">
|
|
1542
|
+
```ts title="example.ts"
|
|
1543
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1544
|
+
```
|
|
1545
|
+
</CodeBlockTab>
|
|
1546
|
+
<CodeBlockTab value="JavaScript">
|
|
1547
|
+
```js title="example.js"
|
|
1548
|
+
export const greeting = "Hello from JavaScript";
|
|
1549
|
+
```
|
|
1550
|
+
</CodeBlockTab>
|
|
1551
|
+
</CompactCodeBlockTabs>
|
|
1552
|
+
````
|
|
1553
|
+
|
|
1554
|
+
This renders as:
|
|
1555
|
+
|
|
1556
|
+
<CompactCodeBlockTabs defaultValue="TypeScript">
|
|
1557
|
+
<CodeBlockTabsList>
|
|
1558
|
+
<CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
|
|
1559
|
+
<CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
|
|
1560
|
+
</CodeBlockTabsList>
|
|
1561
|
+
<CodeBlockTab value="TypeScript">
|
|
1562
|
+
```ts title="example.ts"
|
|
1563
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1564
|
+
```
|
|
1565
|
+
</CodeBlockTab>
|
|
1566
|
+
<CodeBlockTab value="JavaScript">
|
|
1567
|
+
```js title="example.js"
|
|
1568
|
+
export const greeting = "Hello from JavaScript";
|
|
1569
|
+
```
|
|
1570
|
+
</CodeBlockTab>
|
|
1571
|
+
</CompactCodeBlockTabs>
|
|
1572
|
+
|
|
1573
|
+
When migrating an existing site such as next-site, translate adjacent
|
|
1574
|
+
`switcher` fences to `tab="TypeScript"` and `tab="JavaScript"`, then wrap the
|
|
1575
|
+
pair with `<CodeBlockTabs compact>`. Import `@vercel/geistdocs/styles.css` (or
|
|
1576
|
+
`theme.css` with the documented Geist dependencies) so Tailwind scans the
|
|
1577
|
+
package's compiled components and emits the tab layout utilities.
|
|
1578
|
+
|
|
1389
1579
|
### Framework icons
|
|
1390
1580
|
|
|
1391
1581
|
Append `#<framework>` to the title to show a framework logo instead of the
|
|
@@ -1394,22 +1584,22 @@ values are `#next` / `#nextjs` and `#svelte` / `#sveltekit`:
|
|
|
1394
1584
|
|
|
1395
1585
|
````md
|
|
1396
1586
|
```ts title="flags.ts#next"
|
|
1397
|
-
import { flag } from
|
|
1587
|
+
import { flag } from "flags/next";
|
|
1398
1588
|
```
|
|
1399
1589
|
|
|
1400
1590
|
```ts title="flags.ts#svelte"
|
|
1401
|
-
import { flag } from
|
|
1591
|
+
import { flag } from "flags/sveltekit";
|
|
1402
1592
|
```
|
|
1403
1593
|
````
|
|
1404
1594
|
|
|
1405
1595
|
This renders as:
|
|
1406
1596
|
|
|
1407
1597
|
```ts title="flags.ts#next"
|
|
1408
|
-
import { flag } from
|
|
1598
|
+
import { flag } from "flags/next";
|
|
1409
1599
|
```
|
|
1410
1600
|
|
|
1411
1601
|
```ts title="flags.ts#svelte"
|
|
1412
|
-
import { flag } from
|
|
1602
|
+
import { flag } from "flags/sveltekit";
|
|
1413
1603
|
```
|
|
1414
1604
|
|
|
1415
1605
|
### Line Numbers
|
|
@@ -1898,7 +2088,7 @@ Each version can define an `icon` to override the default current/previous versi
|
|
|
1898
2088
|
Use `GeistdocsRouteSelect` for framework, product, or route switchers that should not use version-specific labels:
|
|
1899
2089
|
|
|
1900
2090
|
```tsx
|
|
1901
|
-
import {
|
|
2091
|
+
import { LogoIconNextSvg, LogoSvelte } from "@vercel/geistcn-assets/logos";
|
|
1902
2092
|
import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
1903
2093
|
|
|
1904
2094
|
<GeistdocsRouteSelect
|
|
@@ -1909,14 +2099,14 @@ import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
|
1909
2099
|
id: "nextjs",
|
|
1910
2100
|
label: "Next.js",
|
|
1911
2101
|
description: "React framework",
|
|
1912
|
-
icon: <
|
|
2102
|
+
icon: <LogoIconNextSvg size={18} />,
|
|
1913
2103
|
href: "/:path*",
|
|
1914
2104
|
},
|
|
1915
2105
|
{
|
|
1916
2106
|
id: "sveltekit",
|
|
1917
2107
|
label: "SvelteKit",
|
|
1918
2108
|
description: "Svelte framework",
|
|
1919
|
-
icon: <
|
|
2109
|
+
icon: <LogoSvelte height={18} />,
|
|
1920
2110
|
routePrefix: "/sveltekit",
|
|
1921
2111
|
href: "/sveltekit/:path*",
|
|
1922
2112
|
},
|
|
@@ -2279,7 +2469,7 @@ The `.mdx` version returns:
|
|
|
2279
2469
|
|
|
2280
2470
|
For a docs section mounted at `/docs`, the section root remains `/docs.md`. For a source mounted at the app root with `baseUrl: "/"`, Geistdocs uses `/index.md` for the root page. If Next.js has `basePath: "/docs"`, that public root Markdown URL is `/docs/index.md`.
|
|
2281
2471
|
|
|
2282
|
-
Copy Page, View as Markdown, and the `text/markdown` metadata alternate all use the same package resolver. Use `createDocsPage({ getMarkdownUrl })` only when the deployment needs a different public contract.
|
|
2472
|
+
Copy Page, View as Markdown, and the `text/markdown` metadata alternate all use the same package resolver. View as Markdown opens the resolved `.md` URL in a new tab from a button, which keeps the URL shareable without adding an anchor to the page. Use `createDocsPage({ getMarkdownUrl })` only when the deployment needs a different public contract.
|
|
2283
2473
|
|
|
2284
2474
|
## Use cases
|
|
2285
2475
|
|
|
@@ -2611,7 +2801,7 @@ In this mode, Geistdocs uses the local `search_docs` tool during the AI SDK `str
|
|
|
2611
2801
|
|
|
2612
2802
|
#### Choose a model
|
|
2613
2803
|
|
|
2614
|
-
Pass the `model` option to `createChatRoute` to control which model answers Ask AI requests. It accepts any AI SDK `LanguageModel`, including AI Gateway model strings, and defaults to `openai/gpt-
|
|
2804
|
+
Pass the `model` option to `createChatRoute` to control which model answers Ask AI requests. It accepts any AI SDK `LanguageModel`, including AI Gateway model strings, and defaults to `openai/gpt-5.6-sol`.
|
|
2615
2805
|
|
|
2616
2806
|
```ts title="app/api/chat/route.ts"
|
|
2617
2807
|
import { createChatRoute } from "@vercel/geistdocs/routes/chat";
|
|
@@ -2720,7 +2910,7 @@ The chat interface adapts to different screen sizes:
|
|
|
2720
2910
|
|
|
2721
2911
|
The environment variables `AI_GATEWAY_API_KEY` and `NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL` must be set for the default AI Gateway mode. Set `GEISTDOCS_CHAT_PROXY_URL` to route Ask AI through a Vertex-backed proxy instead. You can read more in the [Environment Variables](/docs/env) section.
|
|
2722
2912
|
|
|
2723
|
-
In default AI Gateway mode, Geistdocs uses `openai/gpt-
|
|
2913
|
+
In default AI Gateway mode, Geistdocs uses `openai/gpt-5.6-sol` via the Vercel AI Gateway. In Vertex-backed proxy mode, the configured proxy controls the upstream model.
|
|
2724
2914
|
|
|
2725
2915
|
## Suggested Prompts
|
|
2726
2916
|
|
|
@@ -3607,66 +3797,3 @@ On mobile, Geistdocs replaces the sidebar outline with a compact menu in the pag
|
|
|
3607
3797
|
|
|
3608
3798
|
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
3799
|
|
|
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.4e75e60"
|
|
212
203
|
}
|
package/docs/pages/ask-ai.md
CHANGED
|
@@ -93,7 +93,7 @@ In this mode, Geistdocs uses the local `search_docs` tool during the AI SDK `str
|
|
|
93
93
|
|
|
94
94
|
#### Choose a model
|
|
95
95
|
|
|
96
|
-
Pass the `model` option to `createChatRoute` to control which model answers Ask AI requests. It accepts any AI SDK `LanguageModel`, including AI Gateway model strings, and defaults to `openai/gpt-
|
|
96
|
+
Pass the `model` option to `createChatRoute` to control which model answers Ask AI requests. It accepts any AI SDK `LanguageModel`, including AI Gateway model strings, and defaults to `openai/gpt-5.6-sol`.
|
|
97
97
|
|
|
98
98
|
```ts title="app/api/chat/route.ts"
|
|
99
99
|
import { createChatRoute } from "@vercel/geistdocs/routes/chat";
|
|
@@ -202,7 +202,7 @@ The chat interface adapts to different screen sizes:
|
|
|
202
202
|
|
|
203
203
|
The environment variables `AI_GATEWAY_API_KEY` and `NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL` must be set for the default AI Gateway mode. Set `GEISTDOCS_CHAT_PROXY_URL` to route Ask AI through a Vertex-backed proxy instead. You can read more in the [Environment Variables](/docs/env) section.
|
|
204
204
|
|
|
205
|
-
In default AI Gateway mode, Geistdocs uses `openai/gpt-
|
|
205
|
+
In default AI Gateway mode, Geistdocs uses `openai/gpt-5.6-sol` via the Vercel AI Gateway. In Vertex-backed proxy mode, the configured proxy controls the upstream model.
|
|
206
206
|
|
|
207
207
|
## Suggested Prompts
|
|
208
208
|
|
package/docs/pages/md.md
CHANGED
|
@@ -39,7 +39,7 @@ The `.mdx` version returns:
|
|
|
39
39
|
|
|
40
40
|
For a docs section mounted at `/docs`, the section root remains `/docs.md`. For a source mounted at the app root with `baseUrl: "/"`, Geistdocs uses `/index.md` for the root page. If Next.js has `basePath: "/docs"`, that public root Markdown URL is `/docs/index.md`.
|
|
41
41
|
|
|
42
|
-
Copy Page, View as Markdown, and the `text/markdown` metadata alternate all use the same package resolver. Use `createDocsPage({ getMarkdownUrl })` only when the deployment needs a different public contract.
|
|
42
|
+
Copy Page, View as Markdown, and the `text/markdown` metadata alternate all use the same package resolver. View as Markdown opens the resolved `.md` URL in a new tab from a button, which keeps the URL shareable without adding an anchor to the page. Use `createDocsPage({ getMarkdownUrl })` only when the deployment needs a different public contract.
|
|
43
43
|
|
|
44
44
|
## Use cases
|
|
45
45
|
|
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
|
|