svelte-docsmith 0.5.1 → 0.7.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/README.md +6 -2
- package/dist/{markdown-layout.svelte → buildtime/markdown-layout.svelte} +1 -1
- package/dist/{markdown-layout.svelte.d.ts → buildtime/markdown-layout.svelte.d.ts} +2 -2
- package/dist/{vite.d.ts → buildtime/vite/collect.d.ts} +5 -23
- package/dist/buildtime/vite/collect.js +101 -0
- package/dist/buildtime/vite/extract.d.ts +30 -0
- package/dist/buildtime/vite/extract.js +104 -0
- package/dist/buildtime/vite/frontmatter.d.ts +6 -0
- package/dist/buildtime/vite/frontmatter.js +20 -0
- package/dist/buildtime/vite/git.d.ts +2 -0
- package/dist/buildtime/vite/git.js +11 -0
- package/dist/buildtime/vite/index.d.ts +25 -0
- package/dist/buildtime/vite/index.js +141 -0
- package/dist/buildtime/vite/pages.d.ts +6 -0
- package/dist/buildtime/vite/pages.js +23 -0
- package/dist/{ui → components/chrome}/copy-button.svelte +1 -1
- package/dist/{ui → components/chrome}/search-trigger.svelte +1 -1
- package/dist/{ui → components/chrome}/search.svelte +5 -5
- package/dist/{ui → components/chrome}/search.svelte.d.ts +1 -1
- package/dist/{ui → components/chrome}/table-of-contents.svelte +2 -2
- package/dist/{ui → components/chrome}/table-of-contents.svelte.d.ts +1 -1
- package/dist/{ui → components/chrome}/theme-toggle.svelte +1 -1
- package/dist/{ui → components/docs}/accordion-item.svelte +1 -1
- package/dist/{ui → components/docs}/accordion.svelte +1 -1
- package/dist/{ui → components/docs}/badge.svelte +1 -1
- package/dist/{ui → components/docs}/live-example.svelte +3 -3
- package/dist/{ui → components/docs}/tab-item.svelte +1 -1
- package/dist/{ui → components/docs}/tabs.svelte +1 -1
- package/dist/{ui → components}/layouts/docs-footer.svelte +1 -1
- package/dist/{ui → components}/layouts/docs-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-header.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-mobile-header.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-mobile-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-shell.svelte +44 -10
- package/dist/{ui → components}/layouts/docs-shell.svelte.d.ts +12 -1
- package/dist/{ui → components}/layouts/docs-sidebar.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-sidebar.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/error-page.svelte +1 -1
- package/dist/{ui → components}/layouts/error-page.svelte.d.ts +1 -1
- package/dist/components/layouts/page-feedback.svelte +51 -0
- package/dist/components/layouts/page-feedback.svelte.d.ts +9 -0
- package/dist/{ui → components}/layouts/prev-next-nav.svelte +1 -1
- package/dist/{ui → components}/layouts/prev-next-nav.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/seo-head.svelte +2 -2
- package/dist/{ui → components}/layouts/seo-head.svelte.d.ts +1 -1
- package/dist/{ui → components}/markdown/pre.svelte +2 -2
- package/dist/{ui → components}/markdown/types.d.ts +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-trigger.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion.svelte +1 -1
- package/dist/{ui → components}/shadcn/badge/badge.svelte +1 -1
- package/dist/{ui → components}/shadcn/badge/badge.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/button/button.svelte +1 -1
- package/dist/{ui → components}/shadcn/button/button.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command-dialog.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-dialog.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command-empty.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-group.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-input.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-link-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-list.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-shortcut.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-shortcut.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-footer.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-overlay.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-label.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-label.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/input/input.svelte +1 -1
- package/dist/{ui → components}/shadcn/input/input.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-addon.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-addon.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-button.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-input.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-input.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-text.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-text.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-textarea.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-textarea.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-description.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-title.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area-scrollbar.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/separator/separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-footer.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-overlay.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-list.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs.svelte +1 -1
- package/dist/{ui → components}/shadcn/textarea/textarea.svelte +1 -1
- package/dist/{ui → components}/shadcn/textarea/textarea.svelte.d.ts +1 -1
- package/dist/core/config.d.ts +65 -0
- package/dist/{config.js → core/config.js} +0 -22
- package/dist/core/content.d.ts +68 -0
- package/dist/core/content.js +7 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +6 -0
- package/dist/core/nav.d.ts +17 -0
- package/dist/core/nav.js +22 -0
- package/dist/{content.d.ts → fallbacks/content.d.ts} +3 -3
- package/dist/fallbacks/content.js +3 -0
- package/dist/{llms.d.ts → fallbacks/llms.d.ts} +2 -3
- package/dist/fallbacks/llms.js +3 -0
- package/dist/fallbacks/missing-plugin.d.ts +7 -0
- package/dist/fallbacks/missing-plugin.js +11 -0
- package/dist/{search.d.ts → fallbacks/search.d.ts} +3 -3
- package/dist/fallbacks/search.js +3 -0
- package/dist/{generate-llms.d.ts → generate/llms.d.ts} +1 -1
- package/dist/index.d.ts +23 -23
- package/dist/index.js +24 -24
- package/dist/search/create-search.d.ts +1 -1
- package/dist/theme.css +57 -57
- package/dist/themes/darkmatter.css +6 -4
- package/dist/themes/tangerine.css +3 -6
- package/package.json +21 -13
- package/dist/config.d.ts +0 -141
- package/dist/content.js +0 -4
- package/dist/llms.js +0 -4
- package/dist/search.js +0 -4
- package/dist/vite.js +0 -366
- /package/dist/{highlight.d.ts → buildtime/highlight.d.ts} +0 -0
- /package/dist/{highlight.js → buildtime/highlight.js} +0 -0
- /package/dist/{preprocess.d.ts → buildtime/preprocess.d.ts} +0 -0
- /package/dist/{preprocess.js → buildtime/preprocess.js} +0 -0
- /package/dist/{ui → components/chrome}/background-pattern.svelte +0 -0
- /package/dist/{ui → components/chrome}/background-pattern.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/copy-button.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/search-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/theme-provider.svelte +0 -0
- /package/dist/{ui → components/chrome}/theme-provider.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/theme-toggle.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/accordion-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/accordion.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/badge.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/callout.svelte +0 -0
- /package/dist/{ui → components/docs}/callout.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/card-grid.svelte +0 -0
- /package/dist/{ui → components/docs}/card-grid.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/card.svelte +0 -0
- /package/dist/{ui → components/docs}/card.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/file-tree-item.svelte +0 -0
- /package/dist/{ui → components/docs}/file-tree-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/file-tree.svelte +0 -0
- /package/dist/{ui → components/docs}/file-tree.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/kbd.svelte +0 -0
- /package/dist/{ui → components/docs}/kbd.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/live-example.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/prop.svelte +0 -0
- /package/dist/{ui → components/docs}/prop.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/props-table.svelte +0 -0
- /package/dist/{ui → components/docs}/props-table.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/step.svelte +0 -0
- /package/dist/{ui → components/docs}/step.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/steps.svelte +0 -0
- /package/dist/{ui → components/docs}/steps.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tab-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tabs-phase.svelte +0 -0
- /package/dist/{ui → components/docs}/tabs-phase.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tabs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/icons/github.svelte +0 -0
- /package/dist/{ui → components}/icons/github.svelte.d.ts +0 -0
- /package/dist/{ui → components}/layouts/breadcrumbs.svelte +0 -0
- /package/dist/{ui → components}/layouts/breadcrumbs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/layouts/copy-page-menu.svelte +0 -0
- /package/dist/{ui → components}/layouts/copy-page-menu.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/code.svelte +0 -0
- /package/dist/{ui → components}/markdown/code.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/h2.svelte +0 -0
- /package/dist/{ui → components}/markdown/h2.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/h3.svelte +0 -0
- /package/dist/{ui → components}/markdown/h3.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/index.d.ts +0 -0
- /package/dist/{ui → components}/markdown/index.js +0 -0
- /package/dist/{ui → components}/markdown/pre.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/table.svelte +0 -0
- /package/dist/{ui → components}/markdown/table.svelte.d.ts +0 -0
- /package/dist/{types.js → components/markdown/types.js} +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/index.js +0 -0
- /package/dist/{ui → components}/shadcn/badge/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/badge/index.js +0 -0
- /package/dist/{ui → components}/shadcn/button/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/button/index.js +0 -0
- /package/dist/{ui → components}/shadcn/command/command-empty.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-input.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-link-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-list.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-loading.svelte +0 -0
- /package/dist/{ui → components}/shadcn/command/command-loading.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/index.js +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-description.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-overlay.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-title.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/index.js +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/input/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input-group/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/input-group/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input-group/input-group-button.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/index.js +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/index.js +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/scroll-area-scrollbar.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/separator/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/separator/index.js +0 -0
- /package/dist/{ui → components}/shadcn/separator/separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/index.js +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-description.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-overlay.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-title.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/index.js +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-list.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/textarea/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/textarea/index.js +0 -0
- /package/dist/{generate-llms.js → generate/llms.js} +0 -0
- /package/dist/{sitemap.d.ts → generate/sitemap.d.ts} +0 -0
- /package/dist/{sitemap.js → generate/sitemap.js} +0 -0
- /package/dist/{clipboard.svelte.d.ts → utils/clipboard.svelte.d.ts} +0 -0
- /package/dist/{clipboard.svelte.js → utils/clipboard.svelte.js} +0 -0
- /package/dist/{shadcn.d.ts → utils/cn.d.ts} +0 -0
- /package/dist/{shadcn.js → utils/cn.js} +0 -0
- /package/dist/{normalize-path.d.ts → utils/normalize-path.d.ts} +0 -0
- /package/dist/{normalize-path.js → utils/normalize-path.js} +0 -0
- /package/dist/{types.d.ts → utils/types.d.ts} +0 -0
- /package/dist/{ui/markdown → utils}/types.js +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The record types for the generated content indexes. The `docsmith()` Vite
|
|
3
|
+
* plugin emits these at build time as the `svelte-docsmith/content`,
|
|
4
|
+
* `/search`, and `/llms` virtual modules; any source with matching fields
|
|
5
|
+
* satisfies them structurally.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The minimal shape `DocsShell` needs from each content entry to build the
|
|
9
|
+
* sidebar. The generated `svelte-docsmith/content` module produces these from
|
|
10
|
+
* your pages' frontmatter; any source with matching title/path/section/order
|
|
11
|
+
* fields satisfies it structurally.
|
|
12
|
+
*/
|
|
13
|
+
export type DocsContentItem = {
|
|
14
|
+
title: string;
|
|
15
|
+
path: string;
|
|
16
|
+
section?: string;
|
|
17
|
+
order?: number;
|
|
18
|
+
description?: string;
|
|
19
|
+
/** Source file path relative to the app cwd, for the "Edit this page" link. */
|
|
20
|
+
sourcePath?: string;
|
|
21
|
+
/** Last git commit date (ISO) for the page's source file. */
|
|
22
|
+
lastUpdated?: string;
|
|
23
|
+
/** Estimated reading time in whole minutes (at ~200 wpm), min 1. */
|
|
24
|
+
readingTime?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The page's `h2`/`h3` headings, extracted at build time by the `docsmith()`
|
|
27
|
+
* vite plugin, so `DocsShell` can render the in-page TOC server-side. The
|
|
28
|
+
* runtime TOC engine still owns scroll-spy and re-scans the DOM.
|
|
29
|
+
*/
|
|
30
|
+
toc?: {
|
|
31
|
+
id: string;
|
|
32
|
+
title: string;
|
|
33
|
+
depth: 2 | 3;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* One page's searchable record, emitted at build time by the `docsmith()` vite
|
|
38
|
+
* plugin as the `svelte-docsmith/search` virtual module. `text` is the page's
|
|
39
|
+
* prose and headings reduced to plain text (frontmatter, `<script>` blocks,
|
|
40
|
+
* fenced code, tags, and markdown punctuation stripped) so a client-side search
|
|
41
|
+
* index can be built over it without shipping raw markdown.
|
|
42
|
+
*/
|
|
43
|
+
export type SearchDoc = {
|
|
44
|
+
path: string;
|
|
45
|
+
title: string;
|
|
46
|
+
section?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
/** The page's `h2`/`h3` heading text, for weighting title/heading matches. */
|
|
49
|
+
headings: string[];
|
|
50
|
+
/** Plain-text body: prose and headings, code and markup removed. */
|
|
51
|
+
text: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* One page's record for LLM-facing output, emitted at build time by the
|
|
55
|
+
* `docsmith()` vite plugin as the `svelte-docsmith/llms` virtual module. Feeds
|
|
56
|
+
* `generateLlmsTxt` (an index) and `generateLlmsFullTxt` (the full corpus).
|
|
57
|
+
*/
|
|
58
|
+
export type LlmsDoc = {
|
|
59
|
+
path: string;
|
|
60
|
+
title: string;
|
|
61
|
+
section?: string;
|
|
62
|
+
/** Sidebar order within the section, so LLM output follows reading order. */
|
|
63
|
+
order?: number;
|
|
64
|
+
description?: string;
|
|
65
|
+
/** The page's markdown body (frontmatter and `<script>`/`<style>` removed,
|
|
66
|
+
* headings and code kept), with the title prepended as an `h1`. */
|
|
67
|
+
content: string;
|
|
68
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The record types for the generated content indexes. The `docsmith()` Vite
|
|
3
|
+
* plugin emits these at build time as the `svelte-docsmith/content`,
|
|
4
|
+
* `/search`, and `/llms` virtual modules; any source with matching fields
|
|
5
|
+
* satisfies them structurally.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// The domain layer: framework-agnostic contracts and pure logic, with no
|
|
2
|
+
// runtime or build-time dependencies. Internal barrel — consumers that span
|
|
3
|
+
// several of these (e.g. the shell) import from here; the public surface is
|
|
4
|
+
// re-exported through `src/lib/index.ts`.
|
|
5
|
+
export { defineConfig } from './config.js';
|
|
6
|
+
export { navFromContent } from './nav.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DocsContentItem } from './content.js';
|
|
2
|
+
/** A single sidebar link. */
|
|
3
|
+
export type NavItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
url: string;
|
|
6
|
+
};
|
|
7
|
+
/** A titled group of sidebar links. */
|
|
8
|
+
export type NavGroup = {
|
|
9
|
+
title: string;
|
|
10
|
+
items: NavItem[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Derive sidebar nav from a content collection: group by `section`, order by
|
|
14
|
+
* `order` within a group, and order groups by the smallest `order` they
|
|
15
|
+
* contain. Entries without a `section` fall under "Docs".
|
|
16
|
+
*/
|
|
17
|
+
export declare function navFromContent(content: DocsContentItem[]): NavGroup[];
|
package/dist/core/nav.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derive sidebar nav from a content collection: group by `section`, order by
|
|
3
|
+
* `order` within a group, and order groups by the smallest `order` they
|
|
4
|
+
* contain. Entries without a `section` fall under "Docs".
|
|
5
|
+
*/
|
|
6
|
+
export function navFromContent(content) {
|
|
7
|
+
const groups = new Map();
|
|
8
|
+
for (const item of content) {
|
|
9
|
+
const section = item.section ?? 'Docs';
|
|
10
|
+
const order = item.order ?? 0;
|
|
11
|
+
const group = groups.get(section) ?? { minOrder: Infinity, items: [] };
|
|
12
|
+
group.items.push({ title: item.title, url: item.path, order });
|
|
13
|
+
group.minOrder = Math.min(group.minOrder, order);
|
|
14
|
+
groups.set(section, group);
|
|
15
|
+
}
|
|
16
|
+
return [...groups.entries()]
|
|
17
|
+
.sort((a, b) => a[1].minOrder - b[1].minOrder)
|
|
18
|
+
.map(([title, group]) => ({
|
|
19
|
+
title,
|
|
20
|
+
items: group.items.sort((a, b) => a.order - b.order).map(({ title, url }) => ({ title, url }))
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* At build time the `docsmith()` Vite plugin (in `vite.config.ts`) intercepts
|
|
5
5
|
* this import and replaces it with your doc pages' frontmatter. This file is
|
|
6
|
-
* only the fallback that runs when the plugin is missing —
|
|
7
|
-
*
|
|
6
|
+
* only the fallback that runs when the plugin is missing — see
|
|
7
|
+
* {@link missingPluginError}.
|
|
8
8
|
*/
|
|
9
|
-
import type { DocsContentItem } from '
|
|
9
|
+
import type { DocsContentItem } from '../core/content.js';
|
|
10
10
|
export declare const docs: DocsContentItem[];
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* At build time the `docsmith()` Vite plugin (in `vite.config.ts`) intercepts
|
|
5
5
|
* this import and replaces it with your doc pages' titles, sections, and full
|
|
6
6
|
* markdown bodies. This file is only the fallback that runs when the plugin is
|
|
7
|
-
* missing —
|
|
8
|
-
* instead of a mystery.
|
|
7
|
+
* missing — see {@link missingPluginError}.
|
|
9
8
|
*/
|
|
10
|
-
import type { LlmsDoc } from '
|
|
9
|
+
import type { LlmsDoc } from '../core/content.js';
|
|
11
10
|
export declare const docs: LlmsDoc[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared error for the virtual-module fallbacks (`content`, `search`, `llms`).
|
|
3
|
+
* Each of those modules is replaced at build time by the `docsmith()` Vite
|
|
4
|
+
* plugin; the checked-in file only runs when the plugin is missing, so it
|
|
5
|
+
* throws this clear, actionable message instead of surfacing an empty index.
|
|
6
|
+
*/
|
|
7
|
+
export declare function missingPluginError(subpath: string): Error;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared error for the virtual-module fallbacks (`content`, `search`, `llms`).
|
|
3
|
+
* Each of those modules is replaced at build time by the `docsmith()` Vite
|
|
4
|
+
* plugin; the checked-in file only runs when the plugin is missing, so it
|
|
5
|
+
* throws this clear, actionable message instead of surfacing an empty index.
|
|
6
|
+
*/
|
|
7
|
+
export function missingPluginError(subpath) {
|
|
8
|
+
return new Error(`[svelte-docsmith] 'svelte-docsmith/${subpath}' requires the docsmith() plugin. ` +
|
|
9
|
+
"Add it to your vite.config: import { docsmith } from 'svelte-docsmith/vite'; " +
|
|
10
|
+
'plugins: [docsmith(), tailwindcss(), sveltekit()]');
|
|
11
|
+
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* At build time the `docsmith()` Vite plugin (in `vite.config.ts`) intercepts
|
|
5
5
|
* this import and replaces it with your doc pages' plain-text bodies. This file
|
|
6
|
-
* is only the fallback that runs when the plugin is missing —
|
|
7
|
-
*
|
|
6
|
+
* is only the fallback that runs when the plugin is missing — see
|
|
7
|
+
* {@link missingPluginError}.
|
|
8
8
|
*/
|
|
9
|
-
import type { SearchDoc } from '
|
|
9
|
+
import type { SearchDoc } from '../core/content.js';
|
|
10
10
|
export declare const docs: SearchDoc[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export { default as DocsShell } from './
|
|
2
|
-
export { default as ErrorPage } from './
|
|
3
|
-
export { default as ThemeProvider } from './
|
|
4
|
-
export { default as ThemeToggle } from './
|
|
5
|
-
export { default as LiveExample } from './
|
|
6
|
-
export { default as Tabs } from './
|
|
7
|
-
export { default as TabItem } from './
|
|
8
|
-
export { default as Callout, type CalloutVariant } from './
|
|
9
|
-
export { default as Steps } from './
|
|
10
|
-
export { default as Step } from './
|
|
11
|
-
export { default as Card } from './
|
|
12
|
-
export { default as CardGrid } from './
|
|
13
|
-
export { default as Accordion } from './
|
|
14
|
-
export { default as AccordionItem } from './
|
|
15
|
-
export { default as Badge, type BadgeVariant } from './
|
|
16
|
-
export { default as Kbd } from './
|
|
17
|
-
export { default as FileTree } from './
|
|
18
|
-
export { default as FileTreeItem } from './
|
|
19
|
-
export { default as PropsTable } from './
|
|
20
|
-
export { default as Prop } from './
|
|
21
|
-
export { defineConfig, type DocsmithConfig, type DocsContentItem, type SearchDoc, type LlmsDoc } from './
|
|
1
|
+
export { default as DocsShell } from './components/layouts/docs-shell.svelte';
|
|
2
|
+
export { default as ErrorPage } from './components/layouts/error-page.svelte';
|
|
3
|
+
export { default as ThemeProvider } from './components/chrome/theme-provider.svelte';
|
|
4
|
+
export { default as ThemeToggle } from './components/chrome/theme-toggle.svelte';
|
|
5
|
+
export { default as LiveExample } from './components/docs/live-example.svelte';
|
|
6
|
+
export { default as Tabs } from './components/docs/tabs.svelte';
|
|
7
|
+
export { default as TabItem } from './components/docs/tab-item.svelte';
|
|
8
|
+
export { default as Callout, type CalloutVariant } from './components/docs/callout.svelte';
|
|
9
|
+
export { default as Steps } from './components/docs/steps.svelte';
|
|
10
|
+
export { default as Step } from './components/docs/step.svelte';
|
|
11
|
+
export { default as Card } from './components/docs/card.svelte';
|
|
12
|
+
export { default as CardGrid } from './components/docs/card-grid.svelte';
|
|
13
|
+
export { default as Accordion } from './components/docs/accordion.svelte';
|
|
14
|
+
export { default as AccordionItem } from './components/docs/accordion-item.svelte';
|
|
15
|
+
export { default as Badge, type BadgeVariant } from './components/docs/badge.svelte';
|
|
16
|
+
export { default as Kbd } from './components/docs/kbd.svelte';
|
|
17
|
+
export { default as FileTree } from './components/docs/file-tree.svelte';
|
|
18
|
+
export { default as FileTreeItem } from './components/docs/file-tree-item.svelte';
|
|
19
|
+
export { default as PropsTable } from './components/docs/props-table.svelte';
|
|
20
|
+
export { default as Prop } from './components/docs/prop.svelte';
|
|
21
|
+
export { defineConfig, type DocsmithConfig, type DocsContentItem, type SearchDoc, type LlmsDoc } from './core/index.js';
|
|
22
22
|
export { createSearchEngine, type SearchEngine, type SearchResult } from './search/create-search.js';
|
|
23
|
-
export { generateSitemap, type SitemapEntry } from './sitemap.js';
|
|
24
|
-
export { generateLlmsTxt, generateLlmsFullTxt, type LlmsSite } from './generate
|
|
23
|
+
export { generateSitemap, type SitemapEntry } from './generate/sitemap.js';
|
|
24
|
+
export { generateLlmsTxt, generateLlmsFullTxt, type LlmsSite } from './generate/llms.js';
|
package/dist/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
// The svelte-docsmith public API. Everything not exported here — the vendored
|
|
2
2
|
// shadcn primitives, the TOC engine, the clipboard helper, the markdown
|
|
3
3
|
// renderer map — is internal and may change between releases.
|
|
4
|
-
// Chrome
|
|
5
|
-
export { default as DocsShell } from './
|
|
6
|
-
export { default as ErrorPage } from './
|
|
7
|
-
export { default as ThemeProvider } from './
|
|
8
|
-
export { default as ThemeToggle } from './
|
|
4
|
+
// Chrome (site shell and theming)
|
|
5
|
+
export { default as DocsShell } from './components/layouts/docs-shell.svelte';
|
|
6
|
+
export { default as ErrorPage } from './components/layouts/error-page.svelte';
|
|
7
|
+
export { default as ThemeProvider } from './components/chrome/theme-provider.svelte';
|
|
8
|
+
export { default as ThemeToggle } from './components/chrome/theme-toggle.svelte';
|
|
9
9
|
// Docs components (authored inside markdown or composed in pages)
|
|
10
|
-
export { default as LiveExample } from './
|
|
11
|
-
export { default as Tabs } from './
|
|
12
|
-
export { default as TabItem } from './
|
|
13
|
-
export { default as Callout } from './
|
|
14
|
-
export { default as Steps } from './
|
|
15
|
-
export { default as Step } from './
|
|
16
|
-
export { default as Card } from './
|
|
17
|
-
export { default as CardGrid } from './
|
|
18
|
-
export { default as Accordion } from './
|
|
19
|
-
export { default as AccordionItem } from './
|
|
20
|
-
export { default as Badge } from './
|
|
21
|
-
export { default as Kbd } from './
|
|
22
|
-
export { default as FileTree } from './
|
|
23
|
-
export { default as FileTreeItem } from './
|
|
24
|
-
export { default as PropsTable } from './
|
|
25
|
-
export { default as Prop } from './
|
|
10
|
+
export { default as LiveExample } from './components/docs/live-example.svelte';
|
|
11
|
+
export { default as Tabs } from './components/docs/tabs.svelte';
|
|
12
|
+
export { default as TabItem } from './components/docs/tab-item.svelte';
|
|
13
|
+
export { default as Callout } from './components/docs/callout.svelte';
|
|
14
|
+
export { default as Steps } from './components/docs/steps.svelte';
|
|
15
|
+
export { default as Step } from './components/docs/step.svelte';
|
|
16
|
+
export { default as Card } from './components/docs/card.svelte';
|
|
17
|
+
export { default as CardGrid } from './components/docs/card-grid.svelte';
|
|
18
|
+
export { default as Accordion } from './components/docs/accordion.svelte';
|
|
19
|
+
export { default as AccordionItem } from './components/docs/accordion-item.svelte';
|
|
20
|
+
export { default as Badge } from './components/docs/badge.svelte';
|
|
21
|
+
export { default as Kbd } from './components/docs/kbd.svelte';
|
|
22
|
+
export { default as FileTree } from './components/docs/file-tree.svelte';
|
|
23
|
+
export { default as FileTreeItem } from './components/docs/file-tree-item.svelte';
|
|
24
|
+
export { default as PropsTable } from './components/docs/props-table.svelte';
|
|
25
|
+
export { default as Prop } from './components/docs/prop.svelte';
|
|
26
26
|
// Config
|
|
27
|
-
export { defineConfig } from './
|
|
27
|
+
export { defineConfig } from './core/index.js';
|
|
28
28
|
// Search engine (framework-agnostic; for building a custom search UI over the
|
|
29
29
|
// generated `svelte-docsmith/search` index)
|
|
30
30
|
export { createSearchEngine } from './search/create-search.js';
|
|
31
31
|
// Sitemap (framework-agnostic; wire into a `sitemap.xml/+server.ts`)
|
|
32
|
-
export { generateSitemap } from './sitemap.js';
|
|
32
|
+
export { generateSitemap } from './generate/sitemap.js';
|
|
33
33
|
// llms.txt (framework-agnostic; wire into `llms.txt/+server.ts` and
|
|
34
34
|
// `llms-full.txt/+server.ts` over the generated `svelte-docsmith/llms` index)
|
|
35
|
-
export { generateLlmsTxt, generateLlmsFullTxt } from './generate
|
|
35
|
+
export { generateLlmsTxt, generateLlmsFullTxt } from './generate/llms.js';
|
package/dist/theme.css
CHANGED
|
@@ -107,38 +107,38 @@
|
|
|
107
107
|
|
|
108
108
|
@layer base {
|
|
109
109
|
:root {
|
|
110
|
-
--background: oklch(0
|
|
111
|
-
--foreground: oklch(0.
|
|
110
|
+
--background: oklch(1 0 0);
|
|
111
|
+
--foreground: oklch(0.2101 0.0318 264.6645);
|
|
112
112
|
--card: oklch(1 0 0);
|
|
113
|
-
--card-foreground: oklch(0.
|
|
113
|
+
--card-foreground: oklch(0.2101 0.0318 264.6645);
|
|
114
114
|
--popover: oklch(1 0 0);
|
|
115
|
-
--popover-foreground: oklch(0.
|
|
116
|
-
--primary: oklch(0.
|
|
115
|
+
--popover-foreground: oklch(0.2101 0.0318 264.6645);
|
|
116
|
+
--primary: oklch(0.6716 0.1368 48.513);
|
|
117
117
|
--primary-foreground: oklch(1 0 0);
|
|
118
|
-
--secondary: oklch(0.
|
|
119
|
-
--secondary-foreground: oklch(0
|
|
120
|
-
--muted: oklch(0.
|
|
118
|
+
--secondary: oklch(0.536 0.0398 196.028);
|
|
119
|
+
--secondary-foreground: oklch(1 0 0);
|
|
120
|
+
--muted: oklch(0.967 0.0029 264.5419);
|
|
121
121
|
--muted-foreground: oklch(0.551 0.0234 264.3637);
|
|
122
|
-
--accent: oklch(0.
|
|
123
|
-
--accent-foreground: oklch(0.
|
|
122
|
+
--accent: oklch(0.9491 0 0);
|
|
123
|
+
--accent-foreground: oklch(0.2101 0.0318 264.6645);
|
|
124
124
|
--destructive: oklch(0.6368 0.2078 25.3313);
|
|
125
|
-
--destructive-foreground: oklch(
|
|
126
|
-
--border: oklch(0.
|
|
127
|
-
--input: oklch(0.
|
|
128
|
-
--ring: oklch(0.
|
|
129
|
-
--chart-1: oklch(0.
|
|
130
|
-
--chart-2: oklch(0.
|
|
131
|
-
--chart-3: oklch(0.
|
|
132
|
-
--chart-4: oklch(0.
|
|
133
|
-
--chart-5: oklch(0.
|
|
134
|
-
--sidebar: oklch(0.
|
|
135
|
-
--sidebar-foreground: oklch(0.
|
|
136
|
-
--sidebar-primary: oklch(0.
|
|
125
|
+
--destructive-foreground: oklch(0.9851 0 0);
|
|
126
|
+
--border: oklch(0.9276 0.0058 264.5313);
|
|
127
|
+
--input: oklch(0.9276 0.0058 264.5313);
|
|
128
|
+
--ring: oklch(0.6716 0.1368 48.513);
|
|
129
|
+
--chart-1: oklch(0.594 0.0443 196.0233);
|
|
130
|
+
--chart-2: oklch(0.7214 0.1337 49.9802);
|
|
131
|
+
--chart-3: oklch(0.8721 0.0864 68.5474);
|
|
132
|
+
--chart-4: oklch(0.6268 0 0);
|
|
133
|
+
--chart-5: oklch(0.683 0 0);
|
|
134
|
+
--sidebar: oklch(0.967 0.0029 264.5419);
|
|
135
|
+
--sidebar-foreground: oklch(0.2101 0.0318 264.6645);
|
|
136
|
+
--sidebar-primary: oklch(0.6716 0.1368 48.513);
|
|
137
137
|
--sidebar-primary-foreground: oklch(1 0 0);
|
|
138
|
-
--sidebar-accent: oklch(0
|
|
139
|
-
--sidebar-accent-foreground: oklch(0.
|
|
138
|
+
--sidebar-accent: oklch(1 0 0);
|
|
139
|
+
--sidebar-accent-foreground: oklch(0.2101 0.0318 264.6645);
|
|
140
140
|
--sidebar-border: oklch(0.9276 0.0058 264.5313);
|
|
141
|
-
--sidebar-ring: oklch(0.
|
|
141
|
+
--sidebar-ring: oklch(0.6716 0.1368 48.513);
|
|
142
142
|
--font-sans: Inter, sans-serif;
|
|
143
143
|
--font-serif: Source Serif 4, serif;
|
|
144
144
|
--font-mono: JetBrains Mono, monospace;
|
|
@@ -165,38 +165,38 @@
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.dark {
|
|
168
|
-
--background: oklch(0.
|
|
169
|
-
--foreground: oklch(0.
|
|
170
|
-
--card: oklch(0.
|
|
171
|
-
--card-foreground: oklch(0.
|
|
172
|
-
--popover: oklch(0.
|
|
173
|
-
--popover-foreground: oklch(0.
|
|
174
|
-
--primary: oklch(0.
|
|
175
|
-
--primary-foreground: oklch(
|
|
176
|
-
--secondary: oklch(0.
|
|
177
|
-
--secondary-foreground: oklch(0.
|
|
178
|
-
--muted: oklch(0.
|
|
179
|
-
--muted-foreground: oklch(0.
|
|
180
|
-
--accent: oklch(0.
|
|
181
|
-
--accent-foreground: oklch(0.
|
|
182
|
-
--destructive: oklch(0.
|
|
183
|
-
--destructive-foreground: oklch(
|
|
184
|
-
--border: oklch(0.
|
|
185
|
-
--input: oklch(0.
|
|
186
|
-
--ring: oklch(0.
|
|
187
|
-
--chart-1: oklch(0.
|
|
188
|
-
--chart-2: oklch(0.
|
|
189
|
-
--chart-3: oklch(0.
|
|
190
|
-
--chart-4: oklch(0.
|
|
191
|
-
--chart-5: oklch(0.
|
|
192
|
-
--sidebar: oklch(0.
|
|
193
|
-
--sidebar-foreground: oklch(0.
|
|
194
|
-
--sidebar-primary: oklch(0.
|
|
195
|
-
--sidebar-primary-foreground: oklch(
|
|
196
|
-
--sidebar-accent: oklch(0.
|
|
197
|
-
--sidebar-accent-foreground: oklch(0.
|
|
198
|
-
--sidebar-border: oklch(0.
|
|
199
|
-
--sidebar-ring: oklch(0.
|
|
168
|
+
--background: oklch(0.1797 0.0043 308.1928);
|
|
169
|
+
--foreground: oklch(0.8109 0 0);
|
|
170
|
+
--card: oklch(0.1822 0 0);
|
|
171
|
+
--card-foreground: oklch(0.8109 0 0);
|
|
172
|
+
--popover: oklch(0.1797 0.0043 308.1928);
|
|
173
|
+
--popover-foreground: oklch(0.8109 0 0);
|
|
174
|
+
--primary: oklch(0.7214 0.1337 49.9802);
|
|
175
|
+
--primary-foreground: oklch(0.1797 0.0043 308.1928);
|
|
176
|
+
--secondary: oklch(0.594 0.0443 196.0233);
|
|
177
|
+
--secondary-foreground: oklch(0.1797 0.0043 308.1928);
|
|
178
|
+
--muted: oklch(0.252 0 0);
|
|
179
|
+
--muted-foreground: oklch(0.6268 0 0);
|
|
180
|
+
--accent: oklch(0.3211 0 0);
|
|
181
|
+
--accent-foreground: oklch(0.8109 0 0);
|
|
182
|
+
--destructive: oklch(0.7106 0.1661 22.2162);
|
|
183
|
+
--destructive-foreground: oklch(0.1797 0.0043 308.1928);
|
|
184
|
+
--border: oklch(0.252 0 0);
|
|
185
|
+
--input: oklch(0.252 0 0);
|
|
186
|
+
--ring: oklch(0.7214 0.1337 49.9802);
|
|
187
|
+
--chart-1: oklch(0.594 0.0443 196.0233);
|
|
188
|
+
--chart-2: oklch(0.7214 0.1337 49.9802);
|
|
189
|
+
--chart-3: oklch(0.8721 0.0864 68.5474);
|
|
190
|
+
--chart-4: oklch(0.6268 0 0);
|
|
191
|
+
--chart-5: oklch(0.683 0 0);
|
|
192
|
+
--sidebar: oklch(0.1822 0 0);
|
|
193
|
+
--sidebar-foreground: oklch(0.8109 0 0);
|
|
194
|
+
--sidebar-primary: oklch(0.7214 0.1337 49.9802);
|
|
195
|
+
--sidebar-primary-foreground: oklch(0.1797 0.0043 308.1928);
|
|
196
|
+
--sidebar-accent: oklch(0.3211 0 0);
|
|
197
|
+
--sidebar-accent-foreground: oklch(0.8109 0 0);
|
|
198
|
+
--sidebar-border: oklch(0.252 0 0);
|
|
199
|
+
--sidebar-ring: oklch(0.7214 0.1337 49.9802);
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
* {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* svelte-docsmith theme — Darkmatter (based on the tweakcn
|
|
2
|
+
* svelte-docsmith theme — Darkmatter. The built-in default (based on the tweakcn
|
|
3
|
+
* preset): theme.css already ships these tokens, so you only import this file to
|
|
4
|
+
* return to Darkmatter after choosing another preset.
|
|
3
5
|
*
|
|
4
|
-
* A near-monochrome shell with a warm orange primary and a muted teal
|
|
5
|
-
*
|
|
6
|
+
* A near-monochrome shell with a warm orange primary and a muted teal secondary;
|
|
7
|
+
* light mode is crisp white, dark mode is deep near-black.
|
|
6
8
|
*
|
|
7
9
|
* @import 'svelte-docsmith/theme.css';
|
|
8
10
|
* @import 'svelte-docsmith/themes/darkmatter.css';
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
--border: oklch(0.252 0 0);
|
|
64
66
|
--input: oklch(0.252 0 0);
|
|
65
67
|
--ring: oklch(0.7214 0.1337 49.9802);
|
|
66
|
-
--destructive: oklch(0.
|
|
68
|
+
--destructive: oklch(0.7106 0.1661 22.2162);
|
|
67
69
|
--destructive-foreground: oklch(0.1797 0.0043 308.1928);
|
|
68
70
|
--chart-1: oklch(0.594 0.0443 196.0233);
|
|
69
71
|
--chart-2: oklch(0.7214 0.1337 49.9802);
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* svelte-docsmith theme — Tangerine
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* so you can re-apply the default explicitly or use it as a starting point:
|
|
2
|
+
* svelte-docsmith theme — Tangerine. A warm terracotta primary on calm,
|
|
3
|
+
* faintly-cool neutrals. Import it after theme.css to swap the default Darkmatter
|
|
4
|
+
* tokens for this palette:
|
|
6
5
|
*
|
|
7
6
|
* @import 'svelte-docsmith/theme.css';
|
|
8
7
|
* @import 'svelte-docsmith/themes/tangerine.css';
|
|
9
|
-
*
|
|
10
|
-
* Warm terracotta primary on calm, faintly-cool neutrals.
|
|
11
8
|
*/
|
|
12
9
|
|
|
13
10
|
:root {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-docsmith",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "A framework for building beautiful documentation sites with Svelte.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "George Daskalakis",
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
"default": "./dist/index.js"
|
|
25
25
|
},
|
|
26
26
|
"./preprocess": {
|
|
27
|
-
"types": "./dist/preprocess.d.ts",
|
|
28
|
-
"default": "./dist/preprocess.js"
|
|
27
|
+
"types": "./dist/buildtime/preprocess.d.ts",
|
|
28
|
+
"default": "./dist/buildtime/preprocess.js"
|
|
29
29
|
},
|
|
30
30
|
"./vite": {
|
|
31
|
-
"types": "./dist/vite.d.ts",
|
|
32
|
-
"default": "./dist/vite.js"
|
|
31
|
+
"types": "./dist/buildtime/vite/index.d.ts",
|
|
32
|
+
"default": "./dist/buildtime/vite/index.js"
|
|
33
33
|
},
|
|
34
34
|
"./content": {
|
|
35
|
-
"types": "./dist/content.d.ts",
|
|
36
|
-
"default": "./dist/content.js"
|
|
35
|
+
"types": "./dist/fallbacks/content.d.ts",
|
|
36
|
+
"default": "./dist/fallbacks/content.js"
|
|
37
37
|
},
|
|
38
38
|
"./search": {
|
|
39
|
-
"types": "./dist/search.d.ts",
|
|
40
|
-
"default": "./dist/search.js"
|
|
39
|
+
"types": "./dist/fallbacks/search.d.ts",
|
|
40
|
+
"default": "./dist/fallbacks/search.js"
|
|
41
41
|
},
|
|
42
42
|
"./llms": {
|
|
43
|
-
"types": "./dist/llms.d.ts",
|
|
44
|
-
"default": "./dist/llms.js"
|
|
43
|
+
"types": "./dist/fallbacks/llms.d.ts",
|
|
44
|
+
"default": "./dist/fallbacks/llms.js"
|
|
45
45
|
},
|
|
46
46
|
"./theme.css": "./dist/theme.css",
|
|
47
47
|
"./themes/*.css": "./dist/themes/*.css",
|
|
@@ -104,9 +104,17 @@
|
|
|
104
104
|
},
|
|
105
105
|
"keywords": [
|
|
106
106
|
"svelte",
|
|
107
|
+
"sveltekit",
|
|
108
|
+
"svelte5",
|
|
109
|
+
"docs",
|
|
110
|
+
"documentation",
|
|
111
|
+
"documentation-generator",
|
|
112
|
+
"docs-site",
|
|
113
|
+
"markdown",
|
|
114
|
+
"mdsvex",
|
|
115
|
+
"shiki",
|
|
107
116
|
"ui",
|
|
108
|
-
"
|
|
109
|
-
"docs"
|
|
117
|
+
"components"
|
|
110
118
|
],
|
|
111
119
|
"scripts": {
|
|
112
120
|
"dev": "vite dev",
|