@vercel/geistdocs 1.28.0 → 2.0.0
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/assets/geistcn/__internal__/components/icon/base-icon.d.ts +59 -0
- package/dist/assets/geistcn/__internal__/components/icon/base-icon.d.ts.map +1 -0
- package/dist/assets/geistcn/__internal__/components/icon/base-icon.js +32 -0
- package/dist/assets/geistcn/__internal__/components/logo/base-logo-svg.d.ts +65 -0
- package/dist/assets/geistcn/__internal__/components/logo/base-logo-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/__internal__/components/logo/base-logo-svg.js +41 -0
- package/dist/assets/geistcn/__internal__/types/color.d.ts +12 -0
- package/dist/assets/geistcn/__internal__/types/color.d.ts.map +1 -0
- package/dist/assets/geistcn/__internal__/types/color.js +25 -0
- package/dist/assets/geistcn/__internal__/types/icon.d.ts +6 -0
- package/dist/assets/geistcn/__internal__/types/icon.d.ts.map +1 -0
- package/dist/assets/geistcn/__internal__/types/icon.js +1 -0
- package/dist/assets/geistcn/__internal__/utils/calculate-icon-dimensions.d.ts +16 -0
- package/dist/assets/geistcn/__internal__/utils/calculate-icon-dimensions.d.ts.map +1 -0
- package/dist/assets/geistcn/__internal__/utils/calculate-icon-dimensions.js +15 -0
- package/dist/assets/geistcn/__internal__/utils/calculate-logo-dimensions.d.ts +30 -0
- package/dist/assets/geistcn/__internal__/utils/calculate-logo-dimensions.d.ts.map +1 -0
- package/dist/assets/geistcn/__internal__/utils/calculate-logo-dimensions.js +30 -0
- package/dist/assets/geistcn/__internal__/utils/parse-icon-size.d.ts +8 -0
- package/dist/assets/geistcn/__internal__/utils/parse-icon-size.d.ts.map +1 -0
- package/dist/assets/geistcn/__internal__/utils/parse-icon-size.js +13 -0
- package/dist/assets/geistcn/__internal__/utils/svg-color.d.ts +13 -0
- package/dist/assets/geistcn/__internal__/utils/svg-color.d.ts.map +1 -0
- package/dist/assets/geistcn/__internal__/utils/svg-color.js +10 -0
- package/dist/assets/geistcn/icons/named/icon-acronym-markdown.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-acronym-markdown.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-acronym-markdown.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-archive.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-archive.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-archive.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-circle-up.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-circle-up.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-circle-up.js +26 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-down.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-down.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-down.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-up-right-small.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-up-right-small.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-up-right-small.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-up.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-up.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-arrow-up.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-bookmark.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-bookmark.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-bookmark.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-box.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-box.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-box.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-check.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-check.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-check.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-double-right.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-double-right.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-double-right.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-down-small.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-down-small.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-down-small.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-down.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-down.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-down.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-left.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-left.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-left.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-right-small.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-right-small.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-right-small.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-right.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-right.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-right.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-up-down.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-up-down.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-up-down.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-up.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-up.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-chevron-up.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-circle.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-circle.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-circle.js +26 -0
- package/dist/assets/geistcn/icons/named/icon-copy.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-copy.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-copy.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-credit-card.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-credit-card.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-credit-card.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-cross.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-cross.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-cross.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-device-desktop.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-device-desktop.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-device-desktop.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-external.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-external.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-external.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-file-text.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-file-text.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-file-text.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-file.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-file.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-file.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-fluid.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-fluid.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-fluid.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-information.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-information.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-information.js +26 -0
- package/dist/assets/geistcn/icons/named/icon-languages.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-languages.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-languages.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-link.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-link.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-link.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-menu-alt.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-menu-alt.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-menu-alt.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-message.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-message.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-message.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-moon.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-moon.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-moon.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-rss.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-rss.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-rss.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-slash-forward.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-slash-forward.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-slash-forward.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-stop-circle.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-stop-circle.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-stop-circle.js +26 -0
- package/dist/assets/geistcn/icons/named/icon-sun.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-sun.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-sun.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-terminal.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-terminal.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-terminal.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-thumb-up.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-thumb-up.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-thumb-up.js +25 -0
- package/dist/assets/geistcn/icons/named/icon-trash.d.ts +26 -0
- package/dist/assets/geistcn/icons/named/icon-trash.d.ts.map +1 -0
- package/dist/assets/geistcn/icons/named/icon-trash.js +25 -0
- package/dist/assets/geistcn/logos/named/logo-eve-svg.d.ts +35 -0
- package/dist/assets/geistcn/logos/named/logo-eve-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/logos/named/logo-eve-svg.js +37 -0
- package/dist/assets/geistcn/logos/named/logo-icon-github-svg.d.ts +27 -0
- package/dist/assets/geistcn/logos/named/logo-icon-github-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/logos/named/logo-icon-github-svg.js +27 -0
- package/dist/assets/geistcn/logos/named/logo-icon-v0-svg.d.ts +27 -0
- package/dist/assets/geistcn/logos/named/logo-icon-v0-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/logos/named/logo-icon-v0-svg.js +26 -0
- package/dist/assets/geistcn/logos/named/logo-icon-vercel-fill-svg.d.ts +27 -0
- package/dist/assets/geistcn/logos/named/logo-icon-vercel-fill-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/logos/named/logo-icon-vercel-fill-svg.js +26 -0
- package/dist/assets/geistcn/logos/named/logo-icon-vercel-svg.d.ts +27 -0
- package/dist/assets/geistcn/logos/named/logo-icon-vercel-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/logos/named/logo-icon-vercel-svg.js +26 -0
- package/dist/assets/geistcn/logos/named/logo-next-js-svg.d.ts +35 -0
- package/dist/assets/geistcn/logos/named/logo-next-js-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/logos/named/logo-next-js-svg.js +37 -0
- package/dist/assets/geistcn/logos/named/logo-svelte-svg.d.ts +35 -0
- package/dist/assets/geistcn/logos/named/logo-svelte-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/logos/named/logo-svelte-svg.js +37 -0
- package/dist/assets/geistcn/logos/named/logo-vercel-oss-svg.d.ts +35 -0
- package/dist/assets/geistcn/logos/named/logo-vercel-oss-svg.d.ts.map +1 -0
- package/dist/assets/geistcn/logos/named/logo-vercel-oss-svg.js +37 -0
- package/dist/assets/icons/index.d.ts +1 -4
- package/dist/assets/icons/index.d.ts.map +1 -1
- package/dist/assets/icons/index.js +1 -4
- package/dist/assets/logos/index.d.ts +1 -4
- package/dist/assets/logos/index.d.ts.map +1 -1
- package/dist/assets/logos/index.js +1 -4
- package/dist/cli/index.js +5 -5
- 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/image.d.ts +19 -0
- package/dist/components/image.d.ts.map +1 -0
- package/dist/components/image.js +9 -0
- package/dist/components/mermaid.js +1 -1
- package/dist/components/steps.d.ts +9 -0
- package/dist/components/steps.d.ts.map +1 -0
- package/dist/components/steps.js +9 -0
- 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/internal/changelog-entries.d.ts.map +1 -1
- package/dist/internal/changelog-entries.js +3 -3
- package/dist/internal/chat/activity.d.ts +20 -0
- package/dist/internal/chat/activity.d.ts.map +1 -0
- package/dist/internal/chat/activity.js +43 -0
- 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 +18 -32
- package/dist/internal/chat/message-sources.d.ts +3 -0
- package/dist/internal/chat/message-sources.d.ts.map +1 -0
- package/dist/internal/chat/message-sources.js +23 -0
- package/dist/internal/chat/message.d.ts.map +1 -1
- package/dist/internal/chat/message.js +62 -8
- 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 +43 -46
- package/dist/internal/chat/source-chunks.d.ts +9 -0
- package/dist/internal/chat/source-chunks.d.ts.map +1 -0
- package/dist/internal/chat/source-chunks.js +7 -0
- package/dist/internal/chat/sources.d.ts +4 -2
- package/dist/internal/chat/sources.d.ts.map +1 -1
- package/dist/internal/chat/sources.js +12 -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.js +3 -3
- 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/link-href.d.ts +13 -0
- package/dist/internal/link-href.d.ts.map +1 -0
- package/dist/internal/link-href.js +51 -0
- package/dist/internal/markdown-negotiation.d.ts +2 -0
- package/dist/internal/markdown-negotiation.d.ts.map +1 -0
- package/dist/internal/markdown-negotiation.js +3 -0
- package/dist/internal/mdx-to-markdown.d.ts +3 -0
- package/dist/internal/mdx-to-markdown.d.ts.map +1 -0
- package/dist/internal/mdx-to-markdown.js +166 -0
- 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 +5 -7
- 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 +51 -30
- package/dist/internal/page-breadcrumb.js +3 -3
- 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/react-node-text.d.ts +4 -0
- package/dist/internal/react-node-text.d.ts.map +1 -0
- package/dist/internal/react-node-text.js +11 -0
- 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 +6 -1
- 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 +19 -8
- 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.js +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 +2 -0
- package/dist/mdx.d.ts.map +1 -1
- package/dist/mdx.js +20 -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 +18 -5
- package/dist/providers/public/components/badge.d.ts +8 -0
- package/dist/providers/public/components/badge.d.ts.map +1 -0
- package/dist/providers/public/components/badge.js +10 -0
- package/dist/providers/public/components/button.d.ts +18 -0
- package/dist/providers/public/components/button.d.ts.map +1 -0
- package/dist/providers/public/components/button.js +24 -0
- package/dist/providers/public/components/code-block-server.d.ts +11 -0
- package/dist/providers/public/components/code-block-server.d.ts.map +1 -0
- package/dist/providers/public/components/code-block-server.js +26 -0
- package/dist/providers/public/components/code-block.d.ts +10 -0
- package/dist/providers/public/components/code-block.d.ts.map +1 -0
- package/dist/providers/public/components/code-block.js +3 -0
- package/dist/providers/public/components/copy-button.d.ts +7 -0
- package/dist/providers/public/components/copy-button.d.ts.map +1 -0
- package/dist/providers/public/components/copy-button.js +23 -0
- package/dist/providers/public/components/drawer.d.ts +13 -0
- package/dist/providers/public/components/drawer.d.ts.map +1 -0
- package/dist/providers/public/components/drawer.js +10 -0
- package/dist/providers/public/components/image.d.ts +7 -0
- package/dist/providers/public/components/image.d.ts.map +1 -0
- package/dist/providers/public/components/image.js +4 -0
- package/dist/providers/public/components/kbd.d.ts +7 -0
- package/dist/providers/public/components/kbd.d.ts.map +1 -0
- package/dist/providers/public/components/kbd.js +10 -0
- package/dist/providers/public/components/modal.d.ts +22 -0
- package/dist/providers/public/components/modal.d.ts.map +1 -0
- package/dist/providers/public/components/modal.js +19 -0
- package/dist/{internal/ui → providers/public/components}/sheet.d.ts +2 -1
- package/dist/providers/public/components/sheet.d.ts.map +1 -0
- package/dist/{internal/ui → providers/public/components}/sheet.js +5 -5
- package/dist/providers/public/components/skeleton.d.ts +10 -0
- package/dist/providers/public/components/skeleton.d.ts.map +1 -0
- package/dist/providers/public/components/skeleton.js +3 -0
- package/dist/{internal/ui → providers/public/components}/spinner.d.ts +1 -1
- package/dist/providers/public/components/spinner.d.ts.map +1 -0
- package/dist/providers/public/components/spinner.js +11 -0
- package/dist/providers/public/components/textarea.d.ts.map +1 -0
- package/dist/{internal/ui → providers/public/components}/textarea.js +1 -1
- package/dist/providers/public/components/theme-switcher.d.ts.map +1 -0
- package/dist/{components → providers/public/components}/theme-switcher.js +7 -7
- package/dist/providers/public/components/toasts.d.ts +10 -0
- package/dist/providers/public/components/toasts.d.ts.map +1 -0
- package/dist/providers/public/components/toasts.js +8 -0
- package/dist/providers/public/components/tooltip.d.ts +13 -0
- package/dist/providers/public/components/tooltip.d.ts.map +1 -0
- package/dist/providers/public/components/tooltip.js +5 -0
- package/dist/providers/public/core/fonts.d.ts +2 -0
- package/dist/providers/public/core/fonts.d.ts.map +1 -0
- package/dist/providers/public/core/fonts.js +24 -0
- package/dist/providers/public/core/provider.d.ts +8 -0
- package/dist/providers/public/core/provider.d.ts.map +1 -0
- package/dist/providers/public/core/provider.js +4 -0
- package/dist/providers/public/core/theme-script.d.ts +5 -0
- package/dist/providers/public/core/theme-script.d.ts.map +1 -0
- package/dist/providers/public/core/theme-script.js +7 -0
- package/dist/providers/public/core.d.ts +5 -0
- package/dist/providers/public/core.d.ts.map +1 -0
- package/dist/providers/public/core.js +4 -0
- package/dist/{internal/cn.d.ts → providers/public/utils.d.ts} +1 -1
- package/dist/providers/public/utils.d.ts.map +1 -0
- package/dist/providers/public-assets/icons/icon-check.d.ts +2 -0
- package/dist/providers/public-assets/icons/icon-check.d.ts.map +1 -0
- package/dist/providers/public-assets/icons/icon-check.js +1 -0
- package/dist/providers/public-assets/icons/icon-chevron-down-small.d.ts +2 -0
- package/dist/providers/public-assets/icons/icon-chevron-down-small.d.ts.map +1 -0
- package/dist/providers/public-assets/icons/icon-chevron-down-small.js +1 -0
- package/dist/providers/public-assets/icons/icon-copy.d.ts +2 -0
- package/dist/providers/public-assets/icons/icon-copy.d.ts.map +1 -0
- package/dist/providers/public-assets/icons/icon-copy.js +1 -0
- package/dist/providers/public-assets/icons.d.ts +40 -0
- package/dist/providers/public-assets/icons.d.ts.map +1 -0
- package/dist/providers/public-assets/icons.js +39 -0
- package/dist/providers/public-assets/logos.d.ts +9 -0
- package/dist/providers/public-assets/logos.d.ts.map +1 -0
- package/dist/providers/public-assets/logos.js +8 -0
- package/dist/proxy.d.ts.map +1 -1
- package/dist/proxy.js +12 -26
- package/dist/routes/chat.d.ts +1 -1
- package/dist/routes/chat.d.ts.map +1 -1
- package/dist/routes/chat.js +31 -14
- package/dist/routes/llms.d.ts +1 -1
- package/dist/routes/llms.d.ts.map +1 -1
- package/dist/routes/llms.js +12 -2
- package/dist/routes/not-found.d.ts.map +1 -1
- package/dist/routes/not-found.js +3 -3
- package/dist/source-config.d.ts +10 -0
- package/dist/source-config.d.ts.map +1 -1
- package/dist/source-config.js +20 -2
- package/dist/source.d.ts +10 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +75 -36
- package/dist/versions.d.ts.map +1 -1
- package/dist/versions.js +5 -5
- package/docs/agents.md +5 -4
- package/docs/llms.txt +520 -140
- package/docs/manifest.json +21 -12
- package/docs/pages/ask-ai.md +3 -4
- package/docs/pages/components/steps.md +129 -0
- package/docs/pages/deployment.md +6 -3
- package/docs/pages/getting-started.md +23 -29
- package/docs/pages/guides/nested-navigation.md +1 -1
- package/docs/pages/md.md +25 -6
- package/docs/pages/migration.md +11 -15
- package/docs/pages/packages.md +54 -0
- package/docs/pages/proxy.md +7 -1
- package/docs/pages/syntax.md +246 -11
- package/docs/pages/versioned-docs.md +2 -3
- package/docs/sitemap.md +4 -3
- package/package.json +36 -90
- package/public-foundation.css +681 -0
- package/shared-theme.css +349 -0
- package/source-config.js +37 -2
- package/styles.css +1 -2
- package/template/AGENTS.md +15 -6
- package/template/app/[lang]/(home)/components/cta.tsx +8 -3
- package/template/app/[lang]/(home)/components/hero.tsx +1 -1
- 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 +13 -18
- package/template/components.json +0 -1
- package/template/content/docs/ask-ai.cn.mdx +2 -2
- package/template/content/docs/ask-ai.mdx +3 -4
- package/template/content/docs/components/meta.json +4 -0
- package/template/content/docs/components/steps.mdx +125 -0
- package/template/content/docs/configuration.cn.mdx +1 -3
- package/template/content/docs/deployment.mdx +8 -4
- package/template/content/docs/getting-started.mdx +24 -30
- package/template/content/docs/guides/nested-navigation.mdx +1 -1
- package/template/content/docs/md.mdx +25 -6
- package/template/content/docs/meta.json +3 -0
- package/template/content/docs/migration.mdx +12 -16
- package/template/content/docs/packages.mdx +53 -0
- package/template/content/docs/proxy.cn.mdx +1 -1
- package/template/content/docs/proxy.mdx +7 -1
- package/template/content/docs/syntax.mdx +252 -11
- package/template/content/docs/versioned-docs.mdx +2 -3
- package/template/next.config.ts +9 -1
- package/template/package.json +2 -8
- package/theme.css +2 -955
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- package/dist/internal/ui/spinner.js +0 -6
- package/dist/internal/ui/textarea.d.ts.map +0 -1
- 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/components/ui/button.tsx +0 -60
- package/template/content/docs/theme-aware-image.mdx +0 -57
- /package/dist/{internal/ui → providers/public/components}/textarea.d.ts +0 -0
- /package/dist/{components → providers/public/components}/theme-switcher.d.ts +0 -0
- /package/dist/{internal/cn.js → providers/public/utils.js} +0 -0
package/shared-theme.css
ADDED
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
@source "node_modules/streamdown/dist/*.js";
|
|
2
|
+
@source "../../streamdown/dist/*.js";
|
|
3
|
+
|
|
4
|
+
@source "./dist/**/*.js";
|
|
5
|
+
|
|
6
|
+
@source "./src/**/*.{ts,tsx}";
|
|
7
|
+
|
|
8
|
+
button:not(:disabled, [aria-disabled="true"]) {
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.prose h1 {
|
|
13
|
+
@apply font-sans font-[450] text-[32px] leading-[40px] tracking-[-1.28px] [&>strong]:font-medium [&>strong]:text-gray-900;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.prose h2 {
|
|
17
|
+
@apply font-sans font-[450] text-[24px] leading-[32px] tracking-[-0.96px] [&>strong]:font-medium [&>strong]:text-gray-900;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.prose h3 {
|
|
21
|
+
@apply font-sans font-[450] text-[20px] leading-[26px] tracking-[-0.4px] [&>strong]:font-medium [&>strong]:text-gray-900;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.prose h4 {
|
|
25
|
+
@apply font-sans font-[450] text-[16px] leading-[24px] tracking-[-0.32px] [&>strong]:font-medium [&>strong]:text-gray-900;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.prose h5,
|
|
29
|
+
.prose h6 {
|
|
30
|
+
@apply font-sans font-[450] text-[14px] leading-[20px] tracking-[-0.28px];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id] {
|
|
34
|
+
position: relative;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id] > a:first-child {
|
|
38
|
+
position: static;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id] > a:first-child::after {
|
|
42
|
+
position: absolute;
|
|
43
|
+
inset: 0;
|
|
44
|
+
content: "";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id] > svg {
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id]:is(:hover, :focus-within) > svg {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.prose ul:where(:not(.not-prose, .not-prose *)) {
|
|
56
|
+
padding-left: 1.25rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.prose ul > li:where(:not(.not-prose, .not-prose *)) {
|
|
60
|
+
padding-left: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Numbered steps. Overrides the fumadocs rail-and-disc layout with a bordered
|
|
64
|
+
Geist counter aligned to each step heading. Emitted by remarkSteps for
|
|
65
|
+
`### 1. Title` headings and by the Steps/Step components. */
|
|
66
|
+
.prose .fd-steps {
|
|
67
|
+
--geistdocs-step-size: 1.75rem;
|
|
68
|
+
padding-left: 0;
|
|
69
|
+
margin-top: 1.5rem;
|
|
70
|
+
margin-left: 0;
|
|
71
|
+
counter-reset: step;
|
|
72
|
+
border-left: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.prose .fd-step {
|
|
76
|
+
position: relative;
|
|
77
|
+
padding-bottom: 2rem;
|
|
78
|
+
padding-left: calc(var(--geistdocs-step-size) + 0.75rem);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.prose .fd-step:last-child {
|
|
82
|
+
padding-bottom: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.prose .fd-step::before {
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: -1px;
|
|
88
|
+
left: 0;
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
width: var(--geistdocs-step-size);
|
|
93
|
+
height: var(--geistdocs-step-size);
|
|
94
|
+
font-size: 0.8125rem;
|
|
95
|
+
font-weight: 500;
|
|
96
|
+
line-height: 1;
|
|
97
|
+
color: var(--ds-gray-1000);
|
|
98
|
+
content: counter(step);
|
|
99
|
+
counter-increment: step;
|
|
100
|
+
background-color: var(--ds-background-100);
|
|
101
|
+
border: 1px solid var(--ds-gray-400);
|
|
102
|
+
border-radius: 9999px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.prose .fd-step > :first-child {
|
|
106
|
+
margin-top: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.prose .fd-step > :last-child {
|
|
110
|
+
margin-bottom: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
#nd-page h1:not(:where(.prose *)) {
|
|
114
|
+
@apply font-sans font-[450] text-[40px] leading-[48px] tracking-tighter;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (width >= 80rem) {
|
|
118
|
+
#nd-page {
|
|
119
|
+
max-width: 780px;
|
|
120
|
+
transform: translateX(-20px);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@layer utilities {
|
|
125
|
+
.line-numbers code {
|
|
126
|
+
counter-reset: step;
|
|
127
|
+
counter-increment: step 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.line-numbers code .line::before {
|
|
131
|
+
content: counter(step);
|
|
132
|
+
counter-increment: step;
|
|
133
|
+
@apply mr-5 inline-block w-4 shrink-0 text-right font-mono text-[13px] tabular-nums text-gray-600;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:root {
|
|
138
|
+
--fd-layout-width: 100%;
|
|
139
|
+
--fd-page-width: 100%;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#nd-docs-layout > div[data-state] {
|
|
143
|
+
@apply top-16;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
#nd-sidebar-mobile {
|
|
147
|
+
@apply mt-16;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
#nd-sidebar-mobile > div:first-child > div:first-child {
|
|
151
|
+
@apply hidden;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:root {
|
|
155
|
+
--shiki-color-text: var(--ds-gray-1000);
|
|
156
|
+
--shiki-color-background: var(--ds-background-100);
|
|
157
|
+
--shiki-token-constant: var(--ds-blue-900);
|
|
158
|
+
--shiki-token-string: var(--ds-green-900);
|
|
159
|
+
--shiki-token-comment: var(--ds-gray-900);
|
|
160
|
+
--shiki-token-keyword: var(--ds-pink-900);
|
|
161
|
+
--shiki-token-parameter: var(--ds-amber-900);
|
|
162
|
+
--shiki-token-function: var(--ds-purple-900);
|
|
163
|
+
--shiki-token-string-expression: var(--ds-green-900);
|
|
164
|
+
--shiki-token-punctuation: var(--ds-gray-1000);
|
|
165
|
+
--shiki-token-link: var(--ds-green-900);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@theme static {
|
|
169
|
+
--color-fd-background: var(--ds-background-100);
|
|
170
|
+
--color-fd-foreground: var(--ds-gray-1000);
|
|
171
|
+
--color-fd-muted: var(--ds-gray-100);
|
|
172
|
+
--color-fd-muted-foreground: var(--ds-gray-800);
|
|
173
|
+
--color-fd-popover: var(--ds-background-100);
|
|
174
|
+
--color-fd-popover-foreground: var(--ds-gray-1000);
|
|
175
|
+
--color-fd-card: var(--ds-background-100);
|
|
176
|
+
--color-fd-card-foreground: var(--ds-gray-1000);
|
|
177
|
+
--color-fd-border: var(--ds-gray-alpha-400);
|
|
178
|
+
--color-fd-primary: var(--ds-gray-1000);
|
|
179
|
+
--color-fd-primary-foreground: var(--ds-background-100);
|
|
180
|
+
--color-fd-secondary: var(--ds-gray-100);
|
|
181
|
+
--color-fd-secondary-foreground: var(--ds-gray-1000);
|
|
182
|
+
--color-fd-accent: var(--ds-gray-100);
|
|
183
|
+
--color-fd-accent-foreground: var(--ds-gray-1000);
|
|
184
|
+
--color-fd-ring: var(--ds-gray-600);
|
|
185
|
+
--color-fd-error: var(--ds-red-800);
|
|
186
|
+
--color-fd-diff-remove: rgb(200 10 100 / 0.12);
|
|
187
|
+
--color-fd-diff-remove-symbol: rgb(230 10 100);
|
|
188
|
+
--color-fd-diff-add: rgb(14 180 100 / 0.1);
|
|
189
|
+
--color-fd-diff-add-symbol: rgb(10 200 100);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
#nd-sidebar {
|
|
193
|
+
--color-fd-accent: var(--ds-gray-100);
|
|
194
|
+
--color-fd-accent-foreground: var(--ds-gray-1000);
|
|
195
|
+
--color-fd-ring: var(--ds-gray-600);
|
|
196
|
+
--color-fd-primary-foreground: var(--ds-background-200);
|
|
197
|
+
color: var(--ds-gray-1000);
|
|
198
|
+
background-color: var(--ds-background-200);
|
|
199
|
+
border-color: var(--ds-gray-alpha-400);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@property --geistdocs-sidebar-fade-top {
|
|
203
|
+
syntax: "<length>";
|
|
204
|
+
inherits: false;
|
|
205
|
+
initial-value: 0px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@property --geistdocs-sidebar-fade-bottom {
|
|
209
|
+
syntax: "<length>";
|
|
210
|
+
inherits: false;
|
|
211
|
+
initial-value: 0px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.geistdocs-sidebar-scroll {
|
|
215
|
+
-ms-overflow-style: none;
|
|
216
|
+
scrollbar-width: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.geistdocs-sidebar-scroll::-webkit-scrollbar {
|
|
220
|
+
display: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.geistdocs-sidebar-pane {
|
|
224
|
+
transition:
|
|
225
|
+
transform 150ms cubic-bezier(0.175, 0.885, 0.32, 1.1),
|
|
226
|
+
opacity 150ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@media (min-width: 961px) {
|
|
230
|
+
.geistdocs-sidebar-scroll {
|
|
231
|
+
--geistdocs-sidebar-fade-size: 40px;
|
|
232
|
+
scroll-padding-block: var(--geistdocs-sidebar-fade-size);
|
|
233
|
+
mask-image: linear-gradient(
|
|
234
|
+
to bottom,
|
|
235
|
+
transparent 0,
|
|
236
|
+
black var(--geistdocs-sidebar-fade-top),
|
|
237
|
+
black calc(100% - var(--geistdocs-sidebar-fade-bottom)),
|
|
238
|
+
transparent 100%
|
|
239
|
+
);
|
|
240
|
+
transition:
|
|
241
|
+
--geistdocs-sidebar-fade-top 150ms ease,
|
|
242
|
+
--geistdocs-sidebar-fade-bottom 150ms ease;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.geistdocs-sidebar-scroll[data-fade-top="true"] {
|
|
246
|
+
--geistdocs-sidebar-fade-top: var(--geistdocs-sidebar-fade-size);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.geistdocs-sidebar-scroll[data-fade-bottom="true"] {
|
|
250
|
+
--geistdocs-sidebar-fade-bottom: var(--geistdocs-sidebar-fade-size);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@supports (animation-timeline: scroll()) {
|
|
254
|
+
.geistdocs-sidebar-scroll {
|
|
255
|
+
animation:
|
|
256
|
+
geistdocs-sidebar-fade-top linear both,
|
|
257
|
+
geistdocs-sidebar-fade-bottom linear both;
|
|
258
|
+
animation-range:
|
|
259
|
+
0 var(--geistdocs-sidebar-fade-size),
|
|
260
|
+
calc(100% - var(--geistdocs-sidebar-fade-size)) 100%;
|
|
261
|
+
animation-timeline: scroll(self), scroll(self);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@keyframes geistdocs-sidebar-fade-top {
|
|
265
|
+
to {
|
|
266
|
+
--geistdocs-sidebar-fade-top: var(--geistdocs-sidebar-fade-size);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@keyframes geistdocs-sidebar-fade-bottom {
|
|
271
|
+
from {
|
|
272
|
+
--geistdocs-sidebar-fade-bottom: var(--geistdocs-sidebar-fade-size);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@container (max-width: 960px) {
|
|
279
|
+
#nd-page > .text-gray-900:first-child {
|
|
280
|
+
display: none;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
[data-geistdocs-command-modal] .text-fd-muted-foreground {
|
|
285
|
+
color: var(--ds-gray-900);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
[data-geistdocs-mobile-sidebar] [data-slot="sheet-header"] {
|
|
289
|
+
height: calc(4rem + env(safe-area-inset-top));
|
|
290
|
+
padding-top: env(safe-area-inset-top);
|
|
291
|
+
padding-right: max(1rem, env(safe-area-inset-right));
|
|
292
|
+
padding-left: max(1rem, env(safe-area-inset-left));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
[data-geistdocs-mobile-sidebar] nav {
|
|
296
|
+
padding-right: max(0.5rem, env(safe-area-inset-right));
|
|
297
|
+
padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
|
|
298
|
+
padding-left: max(0.5rem, env(safe-area-inset-left));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
[data-geistdocs-mobile-sidebar] [data-slot="sheet-close"] {
|
|
302
|
+
top: calc(1rem + env(safe-area-inset-top));
|
|
303
|
+
right: max(1rem, env(safe-area-inset-right));
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
#nd-toc .geistdocs-toc-scroll {
|
|
307
|
+
scrollbar-width: none;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
#nd-toc .geistdocs-toc-scroll::-webkit-scrollbar {
|
|
311
|
+
display: none;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
[data-mobile-docs-bar] {
|
|
315
|
+
padding-right: max(1.5rem, env(safe-area-inset-right));
|
|
316
|
+
padding-left: max(1.5rem, env(safe-area-inset-left));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@media (prefers-reduced-motion: reduce) {
|
|
320
|
+
.geistdocs-sidebar-pane,
|
|
321
|
+
.geistdocs-sidebar-scroll,
|
|
322
|
+
body:has([data-home-route]) header {
|
|
323
|
+
transition: none;
|
|
324
|
+
animation: none;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
@media (min-width: 1200px) {
|
|
329
|
+
[data-mobile-toc-trigger] {
|
|
330
|
+
display: none;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
body:has([data-home-route]) header {
|
|
335
|
+
border-bottom-color: transparent !important;
|
|
336
|
+
transition: border-color 200ms ease;
|
|
337
|
+
}
|
|
338
|
+
html[data-scrolled] body:has([data-home-route]) header {
|
|
339
|
+
border-bottom-color: var(--ds-gray-alpha-400) !important;
|
|
340
|
+
}
|
|
341
|
+
html
|
|
342
|
+
body
|
|
343
|
+
header:has(
|
|
344
|
+
[data-slot="navigation-menu-trigger"][data-state="open"],
|
|
345
|
+
[data-slot="mobile-menu-toggle"][aria-expanded="true"]
|
|
346
|
+
) {
|
|
347
|
+
border-bottom-color: transparent !important;
|
|
348
|
+
transition: none !important;
|
|
349
|
+
}
|
package/source-config.js
CHANGED
|
@@ -2,7 +2,12 @@ import { execFile } from "node:child_process";
|
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
remarkHeading,
|
|
7
|
+
remarkMdxMermaid,
|
|
8
|
+
remarkSteps,
|
|
9
|
+
remarkStructure,
|
|
10
|
+
} from "fumadocs-core/mdx-plugins";
|
|
6
11
|
import {
|
|
7
12
|
defineConfig as defineFumadocsConfig,
|
|
8
13
|
frontmatterSchema,
|
|
@@ -236,6 +241,35 @@ export const geistdocsFrontmatterSchema = frontmatterSchema.extend({
|
|
|
236
241
|
|
|
237
242
|
export const geistdocsMetaSchema = metaSchema;
|
|
238
243
|
|
|
244
|
+
const pluginOf = (entry) => (Array.isArray(entry) ? entry[0] : entry);
|
|
245
|
+
|
|
246
|
+
const indexOfPlugin = (list, plugin) =>
|
|
247
|
+
list.findIndex((entry) => pluginOf(entry) === plugin);
|
|
248
|
+
|
|
249
|
+
// Mirrors src/source-config.ts. `remarkSteps` must run before `remarkHeading`,
|
|
250
|
+
// otherwise the `1. ` prefix that marks a step heading leaks into the heading
|
|
251
|
+
// slug and table of contents. Geistdocs and consumer plugins keep their
|
|
252
|
+
// previous slot ahead of `remarkStructure` so search indexing sees their output.
|
|
253
|
+
export const resolveGeistdocsRemarkPlugins = (
|
|
254
|
+
defaults,
|
|
255
|
+
consumerPlugins = []
|
|
256
|
+
) => {
|
|
257
|
+
const list = [...defaults];
|
|
258
|
+
|
|
259
|
+
const headingIndex = indexOfPlugin(list, remarkHeading);
|
|
260
|
+
list.splice(headingIndex === -1 ? 0 : headingIndex, 0, remarkSteps);
|
|
261
|
+
|
|
262
|
+
const structureIndex = indexOfPlugin(list, remarkStructure);
|
|
263
|
+
list.splice(
|
|
264
|
+
structureIndex === -1 ? list.length : structureIndex,
|
|
265
|
+
0,
|
|
266
|
+
remarkMdxMermaid,
|
|
267
|
+
...consumerPlugins
|
|
268
|
+
);
|
|
269
|
+
|
|
270
|
+
return list;
|
|
271
|
+
};
|
|
272
|
+
|
|
239
273
|
export const defineGeistdocsSourceConfig = (config = {}) => {
|
|
240
274
|
const existingRemarkPlugins = Array.isArray(config.mdxOptions?.remarkPlugins)
|
|
241
275
|
? config.mdxOptions.remarkPlugins
|
|
@@ -246,7 +280,8 @@ export const defineGeistdocsSourceConfig = (config = {}) => {
|
|
|
246
280
|
...config,
|
|
247
281
|
mdxOptions: {
|
|
248
282
|
...config.mdxOptions,
|
|
249
|
-
remarkPlugins:
|
|
283
|
+
remarkPlugins: (defaults) =>
|
|
284
|
+
resolveGeistdocsRemarkPlugins(defaults, existingRemarkPlugins),
|
|
250
285
|
rehypeCodeOptions: {
|
|
251
286
|
...config.mdxOptions?.rehypeCodeOptions,
|
|
252
287
|
themes: { light: geistShikiTheme, dark: geistShikiTheme },
|
package/styles.css
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
|
-
@import "fumadocs-ui/css/shadcn.css";
|
|
3
2
|
@import "fumadocs-ui/css/preset.css";
|
|
4
3
|
@import "tw-animate-css";
|
|
5
4
|
|
|
6
5
|
/* The Geist design layer (theme tokens, utilities, base, fumadocs theming).
|
|
7
|
-
Kept in a separate
|
|
6
|
+
Kept in a separate entry so consuming apps can pull in the same
|
|
8
7
|
design system without re-bundling Tailwind and the fumadocs presets. */
|
|
9
8
|
@import "./theme.css";
|
package/template/AGENTS.md
CHANGED
|
@@ -7,7 +7,7 @@ Use these instructions when an AI coding agent edits this project.
|
|
|
7
7
|
## Architecture
|
|
8
8
|
|
|
9
9
|
- Runtime features come from `@vercel/geistdocs`, including the docs page renderer, layout helpers, MDX components, search, Ask AI, markdown routes, proxy helpers, and source helpers.
|
|
10
|
-
-
|
|
10
|
+
- Geistdocs exposes shared UI primitives through documented `@vercel/geistdocs/components/*` paths. Keep template code package-backed instead of importing provider internals directly.
|
|
11
11
|
- `@vercel/geistdocs` owns the Ask AI client, server route behavior, and AI SDK v6 runtime dependencies. Do not fork package internals to fit an older app-level `ai` version.
|
|
12
12
|
- Local files are user-owned adapters. They should stay thin and call public package exports from `@vercel/geistdocs/*`.
|
|
13
13
|
- Do not copy package internals into the app to make a customization. Prefer configuring an adapter file or upgrading `@vercel/geistdocs`.
|
|
@@ -86,17 +86,16 @@ Use these instructions when an AI coding agent edits this project.
|
|
|
86
86
|
## Migration guidelines
|
|
87
87
|
|
|
88
88
|
- When migrating from Fumadocs or a custom Geist docs site, inventory `source.config.ts`, route files, `middleware.ts` or `proxy.ts`, `public/llms.txt`, OG routes, Tailwind CSS setup, and required environment variables before editing.
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
- Declare the `@vercel/geistcn` and `@vercel/geistcn-assets` versions from the matching bundled template as direct dependencies when application files import them.
|
|
89
|
+
- Use `@vercel/geistdocs` for public repositories. Use `@vercel/geistdocs-private` only in internal environments with access to the restricted `@vercel/geistcn` and `@vercel/geistcn-assets` packages.
|
|
90
|
+
- Keep private npm credentials out of source files; configure them through local npm authentication, Vercel project settings, and GitHub Actions secrets.
|
|
92
91
|
- Inventory direct app usage of `ai` and `@ai-sdk/react`. Package-owned Ask AI uses AI SDK v6; migrate local AI SDK code separately from Geistdocs route adapters.
|
|
93
92
|
- Import source-config helpers from `@vercel/geistdocs/source-config` in `source.config.ts`. Do not import runtime component entry points from source config.
|
|
94
93
|
- Move existing `middleware.ts` behavior into `createProxy({ before })` or `createProxy({ after })` hooks.
|
|
95
94
|
- Delete `public/llms.txt` when using `createLlmsRoute`; otherwise the static file can mask the App Router route.
|
|
96
95
|
- Set `openGraph.images` in `createDocsPage` only when the app includes the Geistdocs OG route, or override metadata to avoid broken `/og/...` URLs.
|
|
97
|
-
- Keep
|
|
96
|
+
- Keep the generated package-specific Next.js configuration. The private template includes the additional Geistcn transpilation settings it requires.
|
|
98
97
|
- Apply `geistFontClasses`, `tailwind`, and `tailwind-preflight` to the root `<html>` element.
|
|
99
|
-
- Import the
|
|
98
|
+
- Import the selected Geistdocs package's stylesheet and keep its generated Tailwind source configuration.
|
|
100
99
|
- Add local fallbacks for production-only environment variables so migration builds do not require production secrets.
|
|
101
100
|
|
|
102
101
|
## Package updates
|
|
@@ -123,3 +122,13 @@ Use these instructions when an AI coding agent edits this project.
|
|
|
123
122
|
- Check both `/docs` and AI-readable routes such as `/agents.md`, `/.well-known/mcp.json`, `/llms.txt`, or a page-level `.md` URL when changing content routing or proxy behavior.
|
|
124
123
|
- Confirm `/api/search/export` is statically generated after changing Mixedbread retrieval or source configuration.
|
|
125
124
|
- Confirm no secrets were added to source files. Use `.env.local` for local values and keep it out of Git.
|
|
125
|
+
|
|
126
|
+
<!-- BEGIN:nextjs-agent-rules -->
|
|
127
|
+
|
|
128
|
+
# This is NOT the Next.js you know
|
|
129
|
+
|
|
130
|
+
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
|
|
131
|
+
|
|
132
|
+
This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
|
|
133
|
+
|
|
134
|
+
<!-- END:nextjs-agent-rules -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Button } from "@vercel/geistdocs/components/button";
|
|
1
2
|
import DynamicLink from "fumadocs-core/dynamic-link";
|
|
2
|
-
import { Button } from "@/components/ui/button";
|
|
3
3
|
|
|
4
4
|
interface CTAProps {
|
|
5
5
|
cta: string;
|
|
@@ -12,8 +12,13 @@ export const CTA = ({ title, href, cta }: CTAProps) => (
|
|
|
12
12
|
<h2 className="@min-[768px]:text-left text-center font-[450]! @min-[640px]:text-heading-40 text-gray-1000 text-heading-32 tracking-tighter">
|
|
13
13
|
{title}
|
|
14
14
|
</h2>
|
|
15
|
-
<Button
|
|
16
|
-
|
|
15
|
+
<Button
|
|
16
|
+
Component={DynamicLink}
|
|
17
|
+
className="w-fit rounded-full"
|
|
18
|
+
href={`/[lang]${href}`}
|
|
19
|
+
size="large"
|
|
20
|
+
>
|
|
21
|
+
{cta}
|
|
17
22
|
</Button>
|
|
18
23
|
</section>
|
|
19
24
|
);
|
|
@@ -11,7 +11,7 @@ interface HeroProps {
|
|
|
11
11
|
export const Hero = ({ badge, title, description, children }: HeroProps) => (
|
|
12
12
|
<section className="mt-(--fd-nav-height) space-y-6 px-4 @min-[640px]:pt-24 pt-16 pb-16 text-center">
|
|
13
13
|
<div className="mx-auto w-full max-w-4xl space-y-5">
|
|
14
|
-
<Badge className="rounded-full" variant="
|
|
14
|
+
<Badge className="rounded-full" contrast="low" variant="gray">
|
|
15
15
|
<div className="size-2 rounded-full bg-gray-800" />
|
|
16
16
|
<p>{badge}</p>
|
|
17
17
|
</Badge>
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
+
import { cn } from "@vercel/geistdocs/utils";
|
|
1
2
|
import type { ReactNode } from "react";
|
|
2
3
|
|
|
3
4
|
interface OneTwoSectionProps {
|
|
4
5
|
children?: ReactNode;
|
|
6
|
+
className?: string;
|
|
5
7
|
description: string;
|
|
6
8
|
title: string;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
export const OneTwoSection = ({
|
|
12
|
+
className,
|
|
10
13
|
title,
|
|
11
14
|
description,
|
|
12
15
|
children,
|
|
13
16
|
}: OneTwoSectionProps) => (
|
|
14
|
-
<div
|
|
17
|
+
<div
|
|
18
|
+
className={cn(
|
|
19
|
+
"grid @min-[640px]:grid-cols-3 @min-[640px]:gap-0 gap-12 @min-[640px]:py-12 py-8",
|
|
20
|
+
className
|
|
21
|
+
)}
|
|
22
|
+
>
|
|
15
23
|
<div className="flex flex-col gap-2 text-balance">
|
|
16
24
|
<h2 className="font-[450]! @min-[640px]:text-2xl @min-[768px]:text-3xl text-gray-1000 text-xl tracking-tighter">
|
|
17
25
|
{title}
|
|
@@ -24,7 +24,7 @@ export const TextGridSection = ({
|
|
|
24
24
|
)}
|
|
25
25
|
>
|
|
26
26
|
{title || description ? (
|
|
27
|
-
<div className="grid
|
|
27
|
+
<div className="grid @min-[768px]:grid-cols-2 @min-[768px]:items-start @min-[768px]:gap-8 gap-4 text-balance">
|
|
28
28
|
{title ? (
|
|
29
29
|
<h2 className="font-[450]! @min-[1024px]:text-[40px] @min-[640px]:text-2xl @min-[768px]:text-3xl text-gray-1000 text-xl tracking-tighter">
|
|
30
30
|
{title}
|
|
@@ -13,7 +13,6 @@ import type { GeistdocsAgentReadinessConfig } from "@vercel/geistdocs/config";
|
|
|
13
13
|
import type { Metadata } from "next";
|
|
14
14
|
import { config } from "@/lib/geistdocs/config";
|
|
15
15
|
import { getLocalizedPath } from "@/lib/geistdocs/public-path";
|
|
16
|
-
import { CenteredSection } from "./components/centered-section";
|
|
17
16
|
import { CTA } from "./components/cta";
|
|
18
17
|
import { Hero } from "./components/hero";
|
|
19
18
|
import { OneTwoSection } from "./components/one-two-section";
|
|
@@ -132,22 +131,22 @@ const HomePage = async ({ params }: PageProps<"/[lang]">) => {
|
|
|
132
131
|
description="Geistdocs combines a shared runtime with local ownership, so documentation teams can standardize behavior without centralizing every page."
|
|
133
132
|
title="A complete foundation for product documentation"
|
|
134
133
|
/>
|
|
135
|
-
<
|
|
136
|
-
|
|
134
|
+
<OneTwoSection
|
|
135
|
+
className="@min-[640px]:mt-16 mt-12"
|
|
137
136
|
description="Every generated project starts as a normal Next.js application. Write MDX locally, configure the shared shell, and deploy with the same workflow as the product it documents."
|
|
138
137
|
title="Keep documentation close to the product"
|
|
139
138
|
>
|
|
140
|
-
<div className="grid gap-3 rounded-lg border bg-background-100 p-6 font-mono text-sm">
|
|
139
|
+
<div className="grid w-full max-w-3xl gap-3 justify-self-end rounded-lg border bg-background-100 p-6 font-mono text-sm">
|
|
141
140
|
<p>content/docs/ stores the documentation source.</p>
|
|
142
141
|
<p>geistdocs.tsx defines product and agent metadata.</p>
|
|
143
142
|
<p>@vercel/geistdocs provides the shared runtime.</p>
|
|
144
143
|
</div>
|
|
145
|
-
</
|
|
144
|
+
</OneTwoSection>
|
|
146
145
|
<OneTwoSection
|
|
147
146
|
description="Agents can discover the documentation corpus, choose a focused page, and recover from stale links without parsing the interactive application shell."
|
|
148
147
|
title="Give agents a direct path through the docs"
|
|
149
148
|
>
|
|
150
|
-
<ul className="grid gap-4 rounded-lg border bg-background-100 p-6 text-gray-900">
|
|
149
|
+
<ul className="grid w-full max-w-3xl gap-4 justify-self-end rounded-lg border bg-background-100 p-6 text-gray-900">
|
|
151
150
|
<li>
|
|
152
151
|
<a
|
|
153
152
|
className="underline"
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import "../global.css";
|
|
2
|
+
import { geistFontClasses } from "@vercel/geistdocs/core";
|
|
3
|
+
import { cn } from "@vercel/geistdocs/utils";
|
|
2
4
|
import "@/lib/geistdocs/site-url-warning";
|
|
3
5
|
import { Footer } from "@vercel/geistdocs/footer";
|
|
6
|
+
import { GeistdocsThemeScript } from "@vercel/geistdocs/layout";
|
|
4
7
|
import { Navbar } from "@vercel/geistdocs/navbar";
|
|
5
8
|
import type { Metadata } from "next";
|
|
6
9
|
import { GeistdocsProvider } from "@/components/geistdocs/provider";
|
|
7
10
|
import { config } from "@/lib/geistdocs/config";
|
|
8
|
-
import { mono, sans } from "@/lib/geistdocs/fonts";
|
|
9
11
|
import { i18n } from "@/lib/geistdocs/i18n";
|
|
10
12
|
import { getRootLang } from "@/lib/geistdocs/root-params";
|
|
11
13
|
import { isSiteUrlConfigured, siteUrl } from "@/lib/geistdocs/site-url";
|
|
12
|
-
import { cn } from "@/lib/utils";
|
|
13
14
|
|
|
14
15
|
export const generateStaticParams = () =>
|
|
15
16
|
i18n.languages.map((lang) => ({ lang }));
|
|
@@ -23,11 +24,17 @@ const Layout = async ({ children }: LayoutProps<"/[lang]">) => {
|
|
|
23
24
|
|
|
24
25
|
return (
|
|
25
26
|
<html
|
|
26
|
-
className={cn(
|
|
27
|
+
className={cn(
|
|
28
|
+
geistFontClasses,
|
|
29
|
+
"tailwind tailwind-preflight antialiased"
|
|
30
|
+
)}
|
|
27
31
|
lang={lang}
|
|
28
32
|
suppressHydrationWarning
|
|
29
33
|
>
|
|
30
|
-
<
|
|
34
|
+
<head>
|
|
35
|
+
<GeistdocsThemeScript />
|
|
36
|
+
</head>
|
|
37
|
+
<body style={{ backgroundColor: "var(--ds-background-200)" }}>
|
|
31
38
|
<GeistdocsProvider basePath={config.basePath} lang={lang}>
|
|
32
39
|
<Navbar config={config} />
|
|
33
40
|
{children}
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
@import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/* Provider foundation, Geistdocs theme rules, and package source discovery are
|
|
2
|
+
owned by the package so public and private templates share this file. */
|
|
3
|
+
@import "@vercel/geistdocs/styles.css";
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--font-sans: var(--font-geist-sans);
|
|
7
|
+
font-feature-settings:
|
|
8
|
+
"rlig" 1,
|
|
9
|
+
"calt" 0,
|
|
10
|
+
"ss11" 1;
|
|
11
|
+
}
|
|
10
12
|
|
|
11
13
|
/* App-only override: this template uses the 200 surface as the page
|
|
12
14
|
background (the package defaults to background-100). */
|
|
13
15
|
@layer base {
|
|
14
16
|
body {
|
|
15
|
-
@apply
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Geist Sans is loaded from the `geist` npm package, which exposes the
|
|
19
|
-
`--font-geist-sans` variable. Alias it so `font-sans`/`--font-sans`
|
|
20
|
-
resolves to it. */
|
|
21
|
-
:root {
|
|
22
|
-
--font-sans: var(--font-geist-sans);
|
|
17
|
+
@apply text-gray-1000;
|
|
23
18
|
}
|
|
24
19
|
}
|
|
25
20
|
|
|
@@ -42,7 +37,7 @@
|
|
|
42
37
|
|
|
43
38
|
/* TOC and footer links use gray-1000 */
|
|
44
39
|
#nd-toc {
|
|
45
|
-
@apply text-gray-1000
|
|
40
|
+
@apply text-gray-1000;
|
|
46
41
|
}
|
|
47
42
|
|
|
48
43
|
#nd-toc a {
|