@treeseed/core 0.1.2
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 +145 -0
- package/dist/agents/index.js +5 -0
- package/dist/agents/registry-helper.js +14 -0
- package/dist/agents/registry.js +88 -0
- package/dist/components/DevWatchReload.astro +45 -0
- package/dist/components/SiteTitle.astro +51 -0
- package/dist/components/content/ContentStatusLegend.astro +18 -0
- package/dist/components/content/StatusBadge.astro +11 -0
- package/dist/components/docs/BookFontControls.astro +180 -0
- package/dist/components/docs/DesktopSidebarToggle.astro +88 -0
- package/dist/components/docs/DownloadBook.astro +34 -0
- package/dist/components/docs/Footer.astro +196 -0
- package/dist/components/docs/Header.astro +150 -0
- package/dist/components/docs/PageFrame.astro +260 -0
- package/dist/components/docs/PageSidebar.astro +63 -0
- package/dist/components/docs/PageTitle.astro +39 -0
- package/dist/components/docs/Sidebar.astro +41 -0
- package/dist/components/docs/ThemeSelect.astro +3 -0
- package/dist/components/forms/ContactForm.astro +234 -0
- package/dist/components/forms/FooterSubscribeForm.astro +189 -0
- package/dist/components/site/BookList.astro +27 -0
- package/dist/components/site/CTASection.astro +24 -0
- package/dist/components/site/ChronicleList.astro +33 -0
- package/dist/components/site/Hero.astro +18 -0
- package/dist/components/site/NotesList.astro +18 -0
- package/dist/components/site/PathCard.astro +16 -0
- package/dist/components/site/ProfileList.astro +30 -0
- package/dist/components/site/SectionIntro.astro +9 -0
- package/dist/components/site/StageBanner.astro +8 -0
- package/dist/components/site/TrustCallout.astro +9 -0
- package/dist/components/starlight.js +6 -0
- package/dist/config.js +8 -0
- package/dist/content-config.js +9 -0
- package/dist/content.js +230 -0
- package/dist/contracts.d.ts +130 -0
- package/dist/contracts.js +0 -0
- package/dist/deploy/config.d.ts +4 -0
- package/dist/deploy/config.js +154 -0
- package/dist/deploy/runtime.js +77 -0
- package/dist/env.yaml +322 -0
- package/dist/environment.d.ts +130 -0
- package/dist/environment.js +324 -0
- package/dist/index.js +81 -0
- package/dist/layouts/AuthoredEntryLayout.astro +87 -0
- package/dist/layouts/BookLayout.astro +35 -0
- package/dist/layouts/BridgeLayout.astro +11 -0
- package/dist/layouts/ContentLayout.astro +24 -0
- package/dist/layouts/MainLayout.astro +203 -0
- package/dist/layouts/NoteLayout.astro +26 -0
- package/dist/layouts/ProfileLayout.astro +81 -0
- package/dist/middleware/starlightRouteData.js +45 -0
- package/dist/pages/404.astro +29 -0
- package/dist/pages/[slug].astro +30 -0
- package/dist/pages/agents/[slug].astro +29 -0
- package/dist/pages/agents/index.astro +27 -0
- package/dist/pages/api/form/submit.js +14 -0
- package/dist/pages/books/[slug].astro +19 -0
- package/dist/pages/books/index.astro +28 -0
- package/dist/pages/contact.astro +27 -0
- package/dist/pages/feed.xml.js +34 -0
- package/dist/pages/index.astro +290 -0
- package/dist/pages/notes/[slug].astro +19 -0
- package/dist/pages/notes/index.astro +21 -0
- package/dist/pages/objectives/[slug].astro +31 -0
- package/dist/pages/objectives/index.astro +30 -0
- package/dist/pages/people/[slug].astro +29 -0
- package/dist/pages/people/index.astro +28 -0
- package/dist/pages/questions/[slug].astro +31 -0
- package/dist/pages/questions/index.astro +30 -0
- package/dist/plugin-default.js +4 -0
- package/dist/plugins/builtin/default-plugin.d.ts +21 -0
- package/dist/plugins/builtin/default-plugin.js +32 -0
- package/dist/plugins/constants.d.ts +21 -0
- package/dist/plugins/constants.js +28 -0
- package/dist/plugins/plugin.d.ts +42 -0
- package/dist/plugins/plugin.js +6 -0
- package/dist/plugins/runtime.d.ts +31 -0
- package/dist/plugins/runtime.js +120 -0
- package/dist/scripts/aggregate-book.js +112 -0
- package/dist/scripts/assert-release-tag-version.js +21 -0
- package/dist/scripts/build-dist.js +384 -0
- package/dist/scripts/build-tenant-worker.js +36 -0
- package/dist/scripts/package-tools.js +88 -0
- package/dist/scripts/patch-starlight-content-path.js +172 -0
- package/dist/scripts/paths.js +11 -0
- package/dist/scripts/publish-package.js +20 -0
- package/dist/scripts/release-verify.js +52 -0
- package/dist/scripts/run-fixture-astro-command.js +21 -0
- package/dist/scripts/tenant-astro-command.js +3 -0
- package/dist/scripts/tenant-build.js +16 -0
- package/dist/scripts/tenant-check.js +7 -0
- package/dist/scripts/test-smoke.js +105 -0
- package/dist/server.js +53 -0
- package/dist/site-resources.d.ts +29 -0
- package/dist/site-resources.js +127 -0
- package/dist/site.js +313 -0
- package/dist/styles/global.css +683 -0
- package/dist/styles/prose.css +89 -0
- package/dist/styles/tokens.css +24 -0
- package/dist/tenant/bridge.js +5 -0
- package/dist/tenant/config.d.ts +9 -0
- package/dist/tenant/config.js +124 -0
- package/dist/tenant/runtime-config.js +20 -0
- package/dist/tsconfigs/strict.json +3 -0
- package/dist/types/agents.d.ts +1 -0
- package/dist/types/agents.js +1 -0
- package/dist/types/astro-build.d.js +0 -0
- package/dist/types/cloudflare-sockets.d.js +0 -0
- package/dist/types/cloudflare.d.ts +1 -0
- package/dist/types/cloudflare.js +1 -0
- package/dist/types/forms.js +4 -0
- package/dist/utils/agents/adapters/execution.js +90 -0
- package/dist/utils/agents/adapters/mutations.js +30 -0
- package/dist/utils/agents/adapters/notification.js +16 -0
- package/dist/utils/agents/adapters/repository.js +61 -0
- package/dist/utils/agents/adapters/research.js +25 -0
- package/dist/utils/agents/adapters/verification.js +62 -0
- package/dist/utils/agents/cli-tools.js +5 -0
- package/dist/utils/agents/contracts/messages.d.ts +88 -0
- package/dist/utils/agents/contracts/messages.js +138 -0
- package/dist/utils/agents/contracts/run.d.ts +20 -0
- package/dist/utils/agents/contracts/run.js +0 -0
- package/dist/utils/agents/runtime-types.d.ts +117 -0
- package/dist/utils/agents/runtime-types.js +4 -0
- package/dist/utils/books-data.js +82 -0
- package/dist/utils/content-status.js +38 -0
- package/dist/utils/forms/config.js +87 -0
- package/dist/utils/forms/constants.js +27 -0
- package/dist/utils/forms/contact-submissions-local.js +19 -0
- package/dist/utils/forms/contact-submissions.js +72 -0
- package/dist/utils/forms/crypto.js +64 -0
- package/dist/utils/forms/guard.js +76 -0
- package/dist/utils/forms/http.js +51 -0
- package/dist/utils/forms/provider-core.js +88 -0
- package/dist/utils/forms/routing-core.js +7 -0
- package/dist/utils/forms/routing.js +13 -0
- package/dist/utils/forms/runtime-core.js +17 -0
- package/dist/utils/forms/runtime.js +27 -0
- package/dist/utils/forms/service-core.js +256 -0
- package/dist/utils/forms/service.js +55 -0
- package/dist/utils/forms/session.js +57 -0
- package/dist/utils/forms/smtp-cloudflare.js +107 -0
- package/dist/utils/forms/smtp-node.js +27 -0
- package/dist/utils/forms/smtp.js +10 -0
- package/dist/utils/forms/subscribers-local.js +21 -0
- package/dist/utils/forms/subscribers.js +53 -0
- package/dist/utils/forms/turnstile.js +31 -0
- package/dist/utils/forms/validation.js +58 -0
- package/dist/utils/hub-content.js +28 -0
- package/dist/utils/plugin-runtime.js +158 -0
- package/dist/utils/routes.js +17 -0
- package/dist/utils/seo.js +4 -0
- package/dist/utils/site-config-schema.js +282 -0
- package/dist/utils/site-config.js +122 -0
- package/dist/utils/starlight-nav.js +62 -0
- package/dist/utils/theme.js +49 -0
- package/dist/vendor/starlight/components/AnchorHeading.astro +53 -0
- package/dist/vendor/starlight/components/Banner.astro +23 -0
- package/dist/vendor/starlight/components/ContentNotice.astro +33 -0
- package/dist/vendor/starlight/components/ContentPanel.astro +27 -0
- package/dist/vendor/starlight/components/DraftContentNotice.astro +5 -0
- package/dist/vendor/starlight/components/EditLink.astro +28 -0
- package/dist/vendor/starlight/components/FallbackContentNotice.astro +5 -0
- package/dist/vendor/starlight/components/Footer.astro +61 -0
- package/dist/vendor/starlight/components/Head.astro +5 -0
- package/dist/vendor/starlight/components/Header.astro +94 -0
- package/dist/vendor/starlight/components/Hero.astro +143 -0
- package/dist/vendor/starlight/components/Icons.js +121 -0
- package/dist/vendor/starlight/components/LanguageSelect.astro +57 -0
- package/dist/vendor/starlight/components/LastUpdated.astro +14 -0
- package/dist/vendor/starlight/components/MarkdownContent.astro +5 -0
- package/dist/vendor/starlight/components/MobileMenuFooter.astro +35 -0
- package/dist/vendor/starlight/components/MobileMenuToggle.astro +107 -0
- package/dist/vendor/starlight/components/MobileTableOfContents.astro +151 -0
- package/dist/vendor/starlight/components/Page.astro +126 -0
- package/dist/vendor/starlight/components/PageFrame.astro +97 -0
- package/dist/vendor/starlight/components/PageSidebar.astro +59 -0
- package/dist/vendor/starlight/components/PageTitle.astro +17 -0
- package/dist/vendor/starlight/components/Pagination.astro +79 -0
- package/dist/vendor/starlight/components/Search.astro +488 -0
- package/dist/vendor/starlight/components/Select.astro +99 -0
- package/dist/vendor/starlight/components/Sidebar.astro +15 -0
- package/dist/vendor/starlight/components/SidebarPersistState.js +43 -0
- package/dist/vendor/starlight/components/SidebarPersister.astro +78 -0
- package/dist/vendor/starlight/components/SidebarRestorePoint.astro +12 -0
- package/dist/vendor/starlight/components/SidebarSublist.astro +154 -0
- package/dist/vendor/starlight/components/SiteTitle.astro +59 -0
- package/dist/vendor/starlight/components/SkipLink.astro +26 -0
- package/dist/vendor/starlight/components/SocialIcons.astro +32 -0
- package/dist/vendor/starlight/components/StarlightPage.astro +17 -0
- package/dist/vendor/starlight/components/TableOfContents/TableOfContentsList.astro +79 -0
- package/dist/vendor/starlight/components/TableOfContents/starlight-toc.js +93 -0
- package/dist/vendor/starlight/components/TableOfContents.astro +18 -0
- package/dist/vendor/starlight/components/ThemeProvider.astro +38 -0
- package/dist/vendor/starlight/components/ThemeSelect.astro +73 -0
- package/dist/vendor/starlight/components/TwoColumnContent.astro +54 -0
- package/dist/vendor/starlight/components.js +26 -0
- package/dist/vendor/starlight/constants.js +4 -0
- package/dist/vendor/starlight/expressive-code.d.js +1 -0
- package/dist/vendor/starlight/global.d.js +0 -0
- package/dist/vendor/starlight/i18n.d.js +1 -0
- package/dist/vendor/starlight/index.js +119 -0
- package/dist/vendor/starlight/integrations/asides-error.js +12 -0
- package/dist/vendor/starlight/integrations/asides.js +179 -0
- package/dist/vendor/starlight/integrations/code-rtl-support.js +21 -0
- package/dist/vendor/starlight/integrations/expressive-code/hast.d.js +1 -0
- package/dist/vendor/starlight/integrations/expressive-code/index.js +63 -0
- package/dist/vendor/starlight/integrations/expressive-code/preprocessor.js +92 -0
- package/dist/vendor/starlight/integrations/expressive-code/themes/night-owl-dark.jsonc +1796 -0
- package/dist/vendor/starlight/integrations/expressive-code/themes/night-owl-dark.jsonc.js +1 -0
- package/dist/vendor/starlight/integrations/expressive-code/themes/night-owl-light.jsonc +1695 -0
- package/dist/vendor/starlight/integrations/expressive-code/themes/night-owl-light.jsonc.js +1 -0
- package/dist/vendor/starlight/integrations/expressive-code/theming.js +62 -0
- package/dist/vendor/starlight/integrations/expressive-code/translations.js +29 -0
- package/dist/vendor/starlight/integrations/heading-links.js +61 -0
- package/dist/vendor/starlight/integrations/pagefind.js +43 -0
- package/dist/vendor/starlight/integrations/remark-rehype.js +68 -0
- package/dist/vendor/starlight/integrations/shared/absolutePathToLang.js +15 -0
- package/dist/vendor/starlight/integrations/shared/localeToLang.js +9 -0
- package/dist/vendor/starlight/integrations/shared/slugToLocale.js +10 -0
- package/dist/vendor/starlight/integrations/sitemap.js +20 -0
- package/dist/vendor/starlight/integrations/virtual-user-config.js +110 -0
- package/dist/vendor/starlight/integrations/vite-layer-order.js +42 -0
- package/dist/vendor/starlight/internal.js +6 -0
- package/dist/vendor/starlight/loaders.js +36 -0
- package/dist/vendor/starlight/locals.d.js +0 -0
- package/dist/vendor/starlight/locals.js +30 -0
- package/dist/vendor/starlight/package.json +231 -0
- package/dist/vendor/starlight/package.json.js +248 -0
- package/dist/vendor/starlight/props.js +0 -0
- package/dist/vendor/starlight/route-data.js +6 -0
- package/dist/vendor/starlight/routes/common.astro +23 -0
- package/dist/vendor/starlight/routes/ssr/404.astro +7 -0
- package/dist/vendor/starlight/routes/ssr/index.astro +14 -0
- package/dist/vendor/starlight/routes/static/404.astro +7 -0
- package/dist/vendor/starlight/routes/static/index.astro +12 -0
- package/dist/vendor/starlight/schema.js +102 -0
- package/dist/vendor/starlight/schemas/badge.js +26 -0
- package/dist/vendor/starlight/schemas/components.js +235 -0
- package/dist/vendor/starlight/schemas/expressiveCode.js +12 -0
- package/dist/vendor/starlight/schemas/favicon.js +33 -0
- package/dist/vendor/starlight/schemas/head.js +32 -0
- package/dist/vendor/starlight/schemas/hero.js +57 -0
- package/dist/vendor/starlight/schemas/i18n.js +101 -0
- package/dist/vendor/starlight/schemas/icon.js +7 -0
- package/dist/vendor/starlight/schemas/logo.js +24 -0
- package/dist/vendor/starlight/schemas/pagefind.js +108 -0
- package/dist/vendor/starlight/schemas/prevNextLink.js +14 -0
- package/dist/vendor/starlight/schemas/sidebar.js +80 -0
- package/dist/vendor/starlight/schemas/site-title.js +19 -0
- package/dist/vendor/starlight/schemas/social.js +19 -0
- package/dist/vendor/starlight/schemas/tableOfContents.js +16 -0
- package/dist/vendor/starlight/style/anchor-links.css +131 -0
- package/dist/vendor/starlight/style/asides.css +51 -0
- package/dist/vendor/starlight/style/layers.css +1 -0
- package/dist/vendor/starlight/style/markdown.css +253 -0
- package/dist/vendor/starlight/style/print.css +175 -0
- package/dist/vendor/starlight/style/props.css +188 -0
- package/dist/vendor/starlight/style/reset.css +52 -0
- package/dist/vendor/starlight/style/util.css +63 -0
- package/dist/vendor/starlight/translations/ar.json +30 -0
- package/dist/vendor/starlight/translations/ar.json.js +32 -0
- package/dist/vendor/starlight/translations/ca.json +43 -0
- package/dist/vendor/starlight/translations/ca.json.js +45 -0
- package/dist/vendor/starlight/translations/cs.json +43 -0
- package/dist/vendor/starlight/translations/cs.json.js +45 -0
- package/dist/vendor/starlight/translations/da.json +30 -0
- package/dist/vendor/starlight/translations/da.json.js +32 -0
- package/dist/vendor/starlight/translations/de.json +30 -0
- package/dist/vendor/starlight/translations/de.json.js +32 -0
- package/dist/vendor/starlight/translations/el.json +30 -0
- package/dist/vendor/starlight/translations/el.json.js +32 -0
- package/dist/vendor/starlight/translations/en.json +30 -0
- package/dist/vendor/starlight/translations/en.json.js +32 -0
- package/dist/vendor/starlight/translations/es.json +43 -0
- package/dist/vendor/starlight/translations/es.json.js +45 -0
- package/dist/vendor/starlight/translations/fa.json +30 -0
- package/dist/vendor/starlight/translations/fa.json.js +32 -0
- package/dist/vendor/starlight/translations/fi.json +30 -0
- package/dist/vendor/starlight/translations/fi.json.js +32 -0
- package/dist/vendor/starlight/translations/fr.json +33 -0
- package/dist/vendor/starlight/translations/fr.json.js +35 -0
- package/dist/vendor/starlight/translations/gl.json +43 -0
- package/dist/vendor/starlight/translations/gl.json.js +45 -0
- package/dist/vendor/starlight/translations/he.json +30 -0
- package/dist/vendor/starlight/translations/he.json.js +32 -0
- package/dist/vendor/starlight/translations/hi.json +30 -0
- package/dist/vendor/starlight/translations/hi.json.js +32 -0
- package/dist/vendor/starlight/translations/hu.json +43 -0
- package/dist/vendor/starlight/translations/hu.json.js +45 -0
- package/dist/vendor/starlight/translations/id.json +30 -0
- package/dist/vendor/starlight/translations/id.json.js +32 -0
- package/dist/vendor/starlight/translations/index.js +77 -0
- package/dist/vendor/starlight/translations/it.json +30 -0
- package/dist/vendor/starlight/translations/it.json.js +32 -0
- package/dist/vendor/starlight/translations/ja.json +30 -0
- package/dist/vendor/starlight/translations/ja.json.js +32 -0
- package/dist/vendor/starlight/translations/ko.json +30 -0
- package/dist/vendor/starlight/translations/ko.json.js +32 -0
- package/dist/vendor/starlight/translations/lv.json +30 -0
- package/dist/vendor/starlight/translations/lv.json.js +32 -0
- package/dist/vendor/starlight/translations/nb.json +30 -0
- package/dist/vendor/starlight/translations/nb.json.js +32 -0
- package/dist/vendor/starlight/translations/nl.json +30 -0
- package/dist/vendor/starlight/translations/nl.json.js +32 -0
- package/dist/vendor/starlight/translations/pl.json +33 -0
- package/dist/vendor/starlight/translations/pl.json.js +35 -0
- package/dist/vendor/starlight/translations/pt.json +30 -0
- package/dist/vendor/starlight/translations/pt.json.js +32 -0
- package/dist/vendor/starlight/translations/ro.json +30 -0
- package/dist/vendor/starlight/translations/ro.json.js +32 -0
- package/dist/vendor/starlight/translations/ru.json +33 -0
- package/dist/vendor/starlight/translations/ru.json.js +35 -0
- package/dist/vendor/starlight/translations/sk.json +30 -0
- package/dist/vendor/starlight/translations/sk.json.js +32 -0
- package/dist/vendor/starlight/translations/sv.json +30 -0
- package/dist/vendor/starlight/translations/sv.json.js +32 -0
- package/dist/vendor/starlight/translations/th.json +30 -0
- package/dist/vendor/starlight/translations/th.json.js +32 -0
- package/dist/vendor/starlight/translations/tr.json +30 -0
- package/dist/vendor/starlight/translations/tr.json.js +32 -0
- package/dist/vendor/starlight/translations/uk.json +30 -0
- package/dist/vendor/starlight/translations/uk.json.js +32 -0
- package/dist/vendor/starlight/translations/vi.json +30 -0
- package/dist/vendor/starlight/translations/vi.json.js +32 -0
- package/dist/vendor/starlight/translations/zh-CN.json +30 -0
- package/dist/vendor/starlight/translations/zh-CN.json.js +32 -0
- package/dist/vendor/starlight/translations/zh-TW.json +30 -0
- package/dist/vendor/starlight/translations/zh-TW.json.js +32 -0
- package/dist/vendor/starlight/types.js +0 -0
- package/dist/vendor/starlight/user-components/Aside.astro +40 -0
- package/dist/vendor/starlight/user-components/Badge.astro +148 -0
- package/dist/vendor/starlight/user-components/Card.astro +68 -0
- package/dist/vendor/starlight/user-components/CardGrid.astro +38 -0
- package/dist/vendor/starlight/user-components/FileTree.astro +137 -0
- package/dist/vendor/starlight/user-components/Icon.astro +42 -0
- package/dist/vendor/starlight/user-components/LinkButton.astro +78 -0
- package/dist/vendor/starlight/user-components/LinkCard.astro +78 -0
- package/dist/vendor/starlight/user-components/Steps.astro +90 -0
- package/dist/vendor/starlight/user-components/TabItem.astro +19 -0
- package/dist/vendor/starlight/user-components/Tabs.astro +268 -0
- package/dist/vendor/starlight/user-components/file-tree-icons.js +608 -0
- package/dist/vendor/starlight/user-components/rehype-file-tree.js +160 -0
- package/dist/vendor/starlight/user-components/rehype-steps.js +53 -0
- package/dist/vendor/starlight/user-components/rehype-tabs.js +73 -0
- package/dist/vendor/starlight/utils/base.js +14 -0
- package/dist/vendor/starlight/utils/canonical.js +13 -0
- package/dist/vendor/starlight/utils/collection-fs.js +13 -0
- package/dist/vendor/starlight/utils/collection.js +16 -0
- package/dist/vendor/starlight/utils/createPathFormatter.js +39 -0
- package/dist/vendor/starlight/utils/createTranslationSystem.js +60 -0
- package/dist/vendor/starlight/utils/error-map.js +110 -0
- package/dist/vendor/starlight/utils/format-path.js +9 -0
- package/dist/vendor/starlight/utils/generateToC.js +18 -0
- package/dist/vendor/starlight/utils/git.js +92 -0
- package/dist/vendor/starlight/utils/gitInlined.js +13 -0
- package/dist/vendor/starlight/utils/head.js +156 -0
- package/dist/vendor/starlight/utils/i18n.js +121 -0
- package/dist/vendor/starlight/utils/localizedUrl.js +37 -0
- package/dist/vendor/starlight/utils/navigation.js +320 -0
- package/dist/vendor/starlight/utils/path.js +52 -0
- package/dist/vendor/starlight/utils/plugins.js +355 -0
- package/dist/vendor/starlight/utils/routing/data.js +116 -0
- package/dist/vendor/starlight/utils/routing/index.js +107 -0
- package/dist/vendor/starlight/utils/routing/middleware.js +40 -0
- package/dist/vendor/starlight/utils/routing/types.js +0 -0
- package/dist/vendor/starlight/utils/routing.js +1 -0
- package/dist/vendor/starlight/utils/slugs.js +70 -0
- package/dist/vendor/starlight/utils/starlight-page.js +123 -0
- package/dist/vendor/starlight/utils/translations-fs.js +31 -0
- package/dist/vendor/starlight/utils/translations.js +31 -0
- package/dist/vendor/starlight/utils/types.js +0 -0
- package/dist/vendor/starlight/utils/url.js +5 -0
- package/dist/vendor/starlight/utils/user-config.js +255 -0
- package/dist/vendor/starlight/utils/validateLogoImports.js +22 -0
- package/dist/vendor/starlight/virtual-internal.d.js +0 -0
- package/dist/vendor/starlight/virtual.d.js +0 -0
- package/dist/worker/forms-worker.js +141 -0
- package/package.json +156 -0
- package/style/anchor-links.css +131 -0
- package/templates/github/deploy.workflow.yml +47 -0
- package/tsconfigs/strict.json +3 -0
- package/utils/git.ts +121 -0
- package/utils/gitInlined.ts +20 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { glob } from "astro/loaders";
|
|
2
|
+
import { getCollectionPathFromRoot } from "./utils/collection.js";
|
|
3
|
+
const docsExtensions = ["markdown", "mdown", "mkdn", "mkd", "mdwn", "md", "mdx"];
|
|
4
|
+
const i18nExtensions = ["json", "yml", "yaml"];
|
|
5
|
+
function docsLoader({
|
|
6
|
+
generateId
|
|
7
|
+
} = {}) {
|
|
8
|
+
return {
|
|
9
|
+
name: "starlight-docs-loader",
|
|
10
|
+
load: createGlobLoadFn("docs", generateId)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function i18nLoader() {
|
|
14
|
+
return {
|
|
15
|
+
name: "starlight-i18n-loader",
|
|
16
|
+
load: createGlobLoadFn("i18n")
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function createGlobLoadFn(collection, generateId) {
|
|
20
|
+
return (context) => {
|
|
21
|
+
const extensions = collection === "docs" ? docsExtensions : i18nExtensions;
|
|
22
|
+
if (collection === "docs" && context.config.integrations.find(({ name }) => name === "@astrojs/markdoc")) {
|
|
23
|
+
extensions.push("mdoc");
|
|
24
|
+
}
|
|
25
|
+
const options = {
|
|
26
|
+
base: getCollectionPathFromRoot(collection, context.config),
|
|
27
|
+
pattern: `**/[^_]*.{${extensions.join(",")}}`
|
|
28
|
+
};
|
|
29
|
+
if (generateId) options.generateId = generateId;
|
|
30
|
+
return glob(options).load(context);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
docsLoader,
|
|
35
|
+
i18nLoader
|
|
36
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AstroError } from "astro/errors";
|
|
2
|
+
import { defineMiddleware } from "astro:middleware";
|
|
3
|
+
import { useTranslations } from "./utils/translations.js";
|
|
4
|
+
const onRequest = defineMiddleware(async (context, next) => {
|
|
5
|
+
context.locals.t = useTranslations(context.currentLocale);
|
|
6
|
+
initializeStarlightRoute(context);
|
|
7
|
+
return next();
|
|
8
|
+
});
|
|
9
|
+
function initializeStarlightRoute(context) {
|
|
10
|
+
if ("starlightRoute" in context.locals) return;
|
|
11
|
+
const state = { routeData: void 0 };
|
|
12
|
+
Object.defineProperty(context.locals, "starlightRoute", {
|
|
13
|
+
get() {
|
|
14
|
+
if (!state.routeData) {
|
|
15
|
+
throw new AstroError(
|
|
16
|
+
"`locals.starlightRoute` is not defined",
|
|
17
|
+
"This usually means a component that accesses `locals.starlightRoute` is being rendered outside of a Starlight page, which is not supported.\n\nIf this is a component you authored, you can do one of the following:\n\n1. Avoid using this component in non-Starlight pages.\n2. Wrap the code that reads `locals.starlightRoute` in a `try/catch` block and handle the cases where `starlightRoute` is not available.\n\nIf this is a Starlight built-in or third-party component, you may need to report a bug or avoid this use of the component."
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
return state.routeData;
|
|
21
|
+
},
|
|
22
|
+
set(routeData) {
|
|
23
|
+
state.routeData = routeData;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
initializeStarlightRoute,
|
|
29
|
+
onRequest
|
|
30
|
+
};
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@astrojs/starlight",
|
|
3
|
+
"version": "0.37.6",
|
|
4
|
+
"description": "Build beautiful, high-performance documentation websites with Astro",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"docs",
|
|
7
|
+
"documentation",
|
|
8
|
+
"astro",
|
|
9
|
+
"withastro",
|
|
10
|
+
"astro-integration"
|
|
11
|
+
],
|
|
12
|
+
"author": "Chris Swithinbank <swithinbank@gmail.com>",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/withastro/starlight",
|
|
17
|
+
"directory": "packages/starlight"
|
|
18
|
+
},
|
|
19
|
+
"bugs": "https://github.com/withastro/starlight/issues",
|
|
20
|
+
"homepage": "https://starlight.astro.build",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./index.ts",
|
|
24
|
+
"./locals": "./locals.ts",
|
|
25
|
+
"./components": "./components.ts",
|
|
26
|
+
"./components/LanguageSelect.astro": {
|
|
27
|
+
"types": "./components/LanguageSelect.astro.tsx",
|
|
28
|
+
"import": "./components/LanguageSelect.astro"
|
|
29
|
+
},
|
|
30
|
+
"./components/Select.astro": {
|
|
31
|
+
"types": "./components/Select.astro.tsx",
|
|
32
|
+
"import": "./components/Select.astro"
|
|
33
|
+
},
|
|
34
|
+
"./components/Banner.astro": {
|
|
35
|
+
"types": "./components/Banner.astro.tsx",
|
|
36
|
+
"import": "./components/Banner.astro"
|
|
37
|
+
},
|
|
38
|
+
"./components/LastUpdated.astro": {
|
|
39
|
+
"types": "./components/LastUpdated.astro.tsx",
|
|
40
|
+
"import": "./components/LastUpdated.astro"
|
|
41
|
+
},
|
|
42
|
+
"./components/Sidebar.astro": {
|
|
43
|
+
"types": "./components/Sidebar.astro.tsx",
|
|
44
|
+
"import": "./components/Sidebar.astro"
|
|
45
|
+
},
|
|
46
|
+
"./components/MarkdownContent.astro": {
|
|
47
|
+
"types": "./components/MarkdownContent.astro.tsx",
|
|
48
|
+
"import": "./components/MarkdownContent.astro"
|
|
49
|
+
},
|
|
50
|
+
"./components/SidebarPersister.astro": {
|
|
51
|
+
"types": "./components/SidebarPersister.astro.tsx",
|
|
52
|
+
"import": "./components/SidebarPersister.astro"
|
|
53
|
+
},
|
|
54
|
+
"./components/SidebarSublist.astro": {
|
|
55
|
+
"types": "./components/SidebarSublist.astro.tsx",
|
|
56
|
+
"import": "./components/SidebarSublist.astro"
|
|
57
|
+
},
|
|
58
|
+
"./components/ContentPanel.astro": {
|
|
59
|
+
"types": "./components/ContentPanel.astro.tsx",
|
|
60
|
+
"import": "./components/ContentPanel.astro"
|
|
61
|
+
},
|
|
62
|
+
"./components/MobileMenuFooter.astro": {
|
|
63
|
+
"types": "./components/MobileMenuFooter.astro.tsx",
|
|
64
|
+
"import": "./components/MobileMenuFooter.astro"
|
|
65
|
+
},
|
|
66
|
+
"./components/SiteTitle.astro": {
|
|
67
|
+
"types": "./components/SiteTitle.astro.tsx",
|
|
68
|
+
"import": "./components/SiteTitle.astro"
|
|
69
|
+
},
|
|
70
|
+
"./components/EditLink.astro": {
|
|
71
|
+
"types": "./components/EditLink.astro.tsx",
|
|
72
|
+
"import": "./components/EditLink.astro"
|
|
73
|
+
},
|
|
74
|
+
"./components/MobileMenuToggle.astro": {
|
|
75
|
+
"types": "./components/MobileMenuToggle.astro.tsx",
|
|
76
|
+
"import": "./components/MobileMenuToggle.astro"
|
|
77
|
+
},
|
|
78
|
+
"./components/SkipLink.astro": {
|
|
79
|
+
"types": "./components/SkipLink.astro.tsx",
|
|
80
|
+
"import": "./components/SkipLink.astro"
|
|
81
|
+
},
|
|
82
|
+
"./components/MobileTableOfContents.astro": {
|
|
83
|
+
"types": "./components/MobileTableOfContents.astro.tsx",
|
|
84
|
+
"import": "./components/MobileTableOfContents.astro"
|
|
85
|
+
},
|
|
86
|
+
"./components/SocialIcons.astro": {
|
|
87
|
+
"types": "./components/SocialIcons.astro.tsx",
|
|
88
|
+
"import": "./components/SocialIcons.astro"
|
|
89
|
+
},
|
|
90
|
+
"./components/FallbackContentNotice.astro": {
|
|
91
|
+
"types": "./components/FallbackContentNotice.astro.tsx",
|
|
92
|
+
"import": "./components/FallbackContentNotice.astro"
|
|
93
|
+
},
|
|
94
|
+
"./components/DraftContentNotice.astro": {
|
|
95
|
+
"types": "./components/DraftContentNotice.astro.tsx",
|
|
96
|
+
"import": "./components/DraftContentNotice.astro"
|
|
97
|
+
},
|
|
98
|
+
"./components/Page.astro": {
|
|
99
|
+
"types": "./components/Page.astro.tsx",
|
|
100
|
+
"import": "./components/Page.astro"
|
|
101
|
+
},
|
|
102
|
+
"./components/StarlightPage.astro": {
|
|
103
|
+
"types": "./components/StarlightPage.astro.tsx",
|
|
104
|
+
"import": "./components/StarlightPage.astro"
|
|
105
|
+
},
|
|
106
|
+
"./components/AnchorHeading.astro": {
|
|
107
|
+
"types": "./components/AnchorHeading.astro.tsx",
|
|
108
|
+
"import": "./components/AnchorHeading.astro"
|
|
109
|
+
},
|
|
110
|
+
"./components/Footer.astro": {
|
|
111
|
+
"types": "./components/Footer.astro.tsx",
|
|
112
|
+
"import": "./components/Footer.astro"
|
|
113
|
+
},
|
|
114
|
+
"./components/PageFrame.astro": {
|
|
115
|
+
"types": "./components/PageFrame.astro.tsx",
|
|
116
|
+
"import": "./components/PageFrame.astro"
|
|
117
|
+
},
|
|
118
|
+
"./components/TableOfContents.astro": {
|
|
119
|
+
"types": "./components/TableOfContents.astro.tsx",
|
|
120
|
+
"import": "./components/TableOfContents.astro"
|
|
121
|
+
},
|
|
122
|
+
"./components/Head.astro": {
|
|
123
|
+
"types": "./components/Head.astro.tsx",
|
|
124
|
+
"import": "./components/Head.astro"
|
|
125
|
+
},
|
|
126
|
+
"./components/PageSidebar.astro": {
|
|
127
|
+
"types": "./components/PageSidebar.astro.tsx",
|
|
128
|
+
"import": "./components/PageSidebar.astro"
|
|
129
|
+
},
|
|
130
|
+
"./components/ThemeProvider.astro": {
|
|
131
|
+
"types": "./components/ThemeProvider.astro.tsx",
|
|
132
|
+
"import": "./components/ThemeProvider.astro"
|
|
133
|
+
},
|
|
134
|
+
"./components/Header.astro": {
|
|
135
|
+
"types": "./components/Header.astro.tsx",
|
|
136
|
+
"import": "./components/Header.astro"
|
|
137
|
+
},
|
|
138
|
+
"./components/PageTitle.astro": {
|
|
139
|
+
"types": "./components/PageTitle.astro.tsx",
|
|
140
|
+
"import": "./components/PageTitle.astro"
|
|
141
|
+
},
|
|
142
|
+
"./components/ThemeSelect.astro": {
|
|
143
|
+
"types": "./components/ThemeSelect.astro.tsx",
|
|
144
|
+
"import": "./components/ThemeSelect.astro"
|
|
145
|
+
},
|
|
146
|
+
"./components/Hero.astro": {
|
|
147
|
+
"types": "./components/Hero.astro.tsx",
|
|
148
|
+
"import": "./components/Hero.astro"
|
|
149
|
+
},
|
|
150
|
+
"./components/Pagination.astro": {
|
|
151
|
+
"types": "./components/Pagination.astro.tsx",
|
|
152
|
+
"import": "./components/Pagination.astro"
|
|
153
|
+
},
|
|
154
|
+
"./components/TwoColumnContent.astro": {
|
|
155
|
+
"types": "./components/TwoColumnContent.astro.tsx",
|
|
156
|
+
"import": "./components/TwoColumnContent.astro"
|
|
157
|
+
},
|
|
158
|
+
"./components/Search.astro": {
|
|
159
|
+
"types": "./components/Search.astro.tsx",
|
|
160
|
+
"import": "./components/Search.astro"
|
|
161
|
+
},
|
|
162
|
+
"./internal": "./internal.ts",
|
|
163
|
+
"./props": "./props.ts",
|
|
164
|
+
"./schema": "./schema.ts",
|
|
165
|
+
"./loaders": "./loaders.ts",
|
|
166
|
+
"./route-data": "./route-data.ts",
|
|
167
|
+
"./types": "./types.ts",
|
|
168
|
+
"./expressive-code": {
|
|
169
|
+
"types": "./expressive-code.d.ts",
|
|
170
|
+
"default": "./expressive-code.mjs"
|
|
171
|
+
},
|
|
172
|
+
"./expressive-code/hast": {
|
|
173
|
+
"types": "./integrations/expressive-code/hast.d.ts",
|
|
174
|
+
"default": "./integrations/expressive-code/hast.mjs"
|
|
175
|
+
},
|
|
176
|
+
"./routes/*": "./routes/*",
|
|
177
|
+
"./style/markdown.css": "./style/markdown.css"
|
|
178
|
+
},
|
|
179
|
+
"peerDependencies": {
|
|
180
|
+
"astro": "^5.5.0"
|
|
181
|
+
},
|
|
182
|
+
"devDependencies": {
|
|
183
|
+
"@playwright/test": "^1.45.0",
|
|
184
|
+
"@types/node": "^18.16.19",
|
|
185
|
+
"@vitest/coverage-v8": "^3.0.5",
|
|
186
|
+
"astro": "^5.6.1",
|
|
187
|
+
"linkedom": "^0.18.4",
|
|
188
|
+
"vitest": "^3.0.5"
|
|
189
|
+
},
|
|
190
|
+
"dependencies": {
|
|
191
|
+
"@astrojs/markdown-remark": "^6.3.1",
|
|
192
|
+
"@astrojs/mdx": "^4.2.3",
|
|
193
|
+
"@astrojs/sitemap": "^3.3.0",
|
|
194
|
+
"@pagefind/default-ui": "^1.3.0",
|
|
195
|
+
"@types/hast": "^3.0.4",
|
|
196
|
+
"@types/js-yaml": "^4.0.9",
|
|
197
|
+
"@types/mdast": "^4.0.4",
|
|
198
|
+
"astro-expressive-code": "^0.41.1",
|
|
199
|
+
"bcp-47": "^2.1.0",
|
|
200
|
+
"hast-util-from-html": "^2.0.1",
|
|
201
|
+
"hast-util-select": "^6.0.2",
|
|
202
|
+
"hast-util-to-string": "^3.0.0",
|
|
203
|
+
"hastscript": "^9.0.0",
|
|
204
|
+
"i18next": "^23.11.5",
|
|
205
|
+
"js-yaml": "^4.1.0",
|
|
206
|
+
"klona": "^2.0.6",
|
|
207
|
+
"magic-string": "^0.30.17",
|
|
208
|
+
"mdast-util-directive": "^3.0.0",
|
|
209
|
+
"mdast-util-to-markdown": "^2.1.0",
|
|
210
|
+
"mdast-util-to-string": "^4.0.0",
|
|
211
|
+
"pagefind": "^1.3.0",
|
|
212
|
+
"rehype": "^13.0.1",
|
|
213
|
+
"rehype-format": "^5.0.0",
|
|
214
|
+
"remark-directive": "^3.0.0",
|
|
215
|
+
"ultrahtml": "^1.6.0",
|
|
216
|
+
"unified": "^11.0.5",
|
|
217
|
+
"unist-util-visit": "^5.0.0",
|
|
218
|
+
"vfile": "^6.0.2"
|
|
219
|
+
},
|
|
220
|
+
"publishConfig": {
|
|
221
|
+
"provenance": true
|
|
222
|
+
},
|
|
223
|
+
"scripts": {
|
|
224
|
+
"test": "vitest",
|
|
225
|
+
"test:legacy": "LEGACY_COLLECTIONS=true vitest",
|
|
226
|
+
"test:coverage": "vitest run --coverage",
|
|
227
|
+
"test:e2e": "pnpm test:e2e:chrome",
|
|
228
|
+
"test:e2e:chrome": "playwright install --with-deps chromium && playwright test --project chrome",
|
|
229
|
+
"test:e2e:firefox": "playwright install --with-deps firefox && playwright test --project firefox"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
const __treeseedJson = {
|
|
2
|
+
"name": "@astrojs/starlight",
|
|
3
|
+
"version": "0.37.6",
|
|
4
|
+
"description": "Build beautiful, high-performance documentation websites with Astro",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"docs",
|
|
7
|
+
"documentation",
|
|
8
|
+
"astro",
|
|
9
|
+
"withastro",
|
|
10
|
+
"astro-integration"
|
|
11
|
+
],
|
|
12
|
+
"author": "Chris Swithinbank <swithinbank@gmail.com>",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/withastro/starlight",
|
|
17
|
+
"directory": "packages/starlight"
|
|
18
|
+
},
|
|
19
|
+
"bugs": "https://github.com/withastro/starlight/issues",
|
|
20
|
+
"homepage": "https://starlight.astro.build",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./index.ts",
|
|
24
|
+
"./locals": "./locals.ts",
|
|
25
|
+
"./components": "./components.ts",
|
|
26
|
+
"./components/LanguageSelect.astro": {
|
|
27
|
+
"types": "./components/LanguageSelect.astro.tsx",
|
|
28
|
+
"import": "./components/LanguageSelect.astro"
|
|
29
|
+
},
|
|
30
|
+
"./components/Select.astro": {
|
|
31
|
+
"types": "./components/Select.astro.tsx",
|
|
32
|
+
"import": "./components/Select.astro"
|
|
33
|
+
},
|
|
34
|
+
"./components/Banner.astro": {
|
|
35
|
+
"types": "./components/Banner.astro.tsx",
|
|
36
|
+
"import": "./components/Banner.astro"
|
|
37
|
+
},
|
|
38
|
+
"./components/LastUpdated.astro": {
|
|
39
|
+
"types": "./components/LastUpdated.astro.tsx",
|
|
40
|
+
"import": "./components/LastUpdated.astro"
|
|
41
|
+
},
|
|
42
|
+
"./components/Sidebar.astro": {
|
|
43
|
+
"types": "./components/Sidebar.astro.tsx",
|
|
44
|
+
"import": "./components/Sidebar.astro"
|
|
45
|
+
},
|
|
46
|
+
"./components/MarkdownContent.astro": {
|
|
47
|
+
"types": "./components/MarkdownContent.astro.tsx",
|
|
48
|
+
"import": "./components/MarkdownContent.astro"
|
|
49
|
+
},
|
|
50
|
+
"./components/SidebarPersister.astro": {
|
|
51
|
+
"types": "./components/SidebarPersister.astro.tsx",
|
|
52
|
+
"import": "./components/SidebarPersister.astro"
|
|
53
|
+
},
|
|
54
|
+
"./components/SidebarSublist.astro": {
|
|
55
|
+
"types": "./components/SidebarSublist.astro.tsx",
|
|
56
|
+
"import": "./components/SidebarSublist.astro"
|
|
57
|
+
},
|
|
58
|
+
"./components/ContentPanel.astro": {
|
|
59
|
+
"types": "./components/ContentPanel.astro.tsx",
|
|
60
|
+
"import": "./components/ContentPanel.astro"
|
|
61
|
+
},
|
|
62
|
+
"./components/MobileMenuFooter.astro": {
|
|
63
|
+
"types": "./components/MobileMenuFooter.astro.tsx",
|
|
64
|
+
"import": "./components/MobileMenuFooter.astro"
|
|
65
|
+
},
|
|
66
|
+
"./components/SiteTitle.astro": {
|
|
67
|
+
"types": "./components/SiteTitle.astro.tsx",
|
|
68
|
+
"import": "./components/SiteTitle.astro"
|
|
69
|
+
},
|
|
70
|
+
"./components/EditLink.astro": {
|
|
71
|
+
"types": "./components/EditLink.astro.tsx",
|
|
72
|
+
"import": "./components/EditLink.astro"
|
|
73
|
+
},
|
|
74
|
+
"./components/MobileMenuToggle.astro": {
|
|
75
|
+
"types": "./components/MobileMenuToggle.astro.tsx",
|
|
76
|
+
"import": "./components/MobileMenuToggle.astro"
|
|
77
|
+
},
|
|
78
|
+
"./components/SkipLink.astro": {
|
|
79
|
+
"types": "./components/SkipLink.astro.tsx",
|
|
80
|
+
"import": "./components/SkipLink.astro"
|
|
81
|
+
},
|
|
82
|
+
"./components/MobileTableOfContents.astro": {
|
|
83
|
+
"types": "./components/MobileTableOfContents.astro.tsx",
|
|
84
|
+
"import": "./components/MobileTableOfContents.astro"
|
|
85
|
+
},
|
|
86
|
+
"./components/SocialIcons.astro": {
|
|
87
|
+
"types": "./components/SocialIcons.astro.tsx",
|
|
88
|
+
"import": "./components/SocialIcons.astro"
|
|
89
|
+
},
|
|
90
|
+
"./components/FallbackContentNotice.astro": {
|
|
91
|
+
"types": "./components/FallbackContentNotice.astro.tsx",
|
|
92
|
+
"import": "./components/FallbackContentNotice.astro"
|
|
93
|
+
},
|
|
94
|
+
"./components/DraftContentNotice.astro": {
|
|
95
|
+
"types": "./components/DraftContentNotice.astro.tsx",
|
|
96
|
+
"import": "./components/DraftContentNotice.astro"
|
|
97
|
+
},
|
|
98
|
+
"./components/Page.astro": {
|
|
99
|
+
"types": "./components/Page.astro.tsx",
|
|
100
|
+
"import": "./components/Page.astro"
|
|
101
|
+
},
|
|
102
|
+
"./components/StarlightPage.astro": {
|
|
103
|
+
"types": "./components/StarlightPage.astro.tsx",
|
|
104
|
+
"import": "./components/StarlightPage.astro"
|
|
105
|
+
},
|
|
106
|
+
"./components/AnchorHeading.astro": {
|
|
107
|
+
"types": "./components/AnchorHeading.astro.tsx",
|
|
108
|
+
"import": "./components/AnchorHeading.astro"
|
|
109
|
+
},
|
|
110
|
+
"./components/Footer.astro": {
|
|
111
|
+
"types": "./components/Footer.astro.tsx",
|
|
112
|
+
"import": "./components/Footer.astro"
|
|
113
|
+
},
|
|
114
|
+
"./components/PageFrame.astro": {
|
|
115
|
+
"types": "./components/PageFrame.astro.tsx",
|
|
116
|
+
"import": "./components/PageFrame.astro"
|
|
117
|
+
},
|
|
118
|
+
"./components/TableOfContents.astro": {
|
|
119
|
+
"types": "./components/TableOfContents.astro.tsx",
|
|
120
|
+
"import": "./components/TableOfContents.astro"
|
|
121
|
+
},
|
|
122
|
+
"./components/Head.astro": {
|
|
123
|
+
"types": "./components/Head.astro.tsx",
|
|
124
|
+
"import": "./components/Head.astro"
|
|
125
|
+
},
|
|
126
|
+
"./components/PageSidebar.astro": {
|
|
127
|
+
"types": "./components/PageSidebar.astro.tsx",
|
|
128
|
+
"import": "./components/PageSidebar.astro"
|
|
129
|
+
},
|
|
130
|
+
"./components/ThemeProvider.astro": {
|
|
131
|
+
"types": "./components/ThemeProvider.astro.tsx",
|
|
132
|
+
"import": "./components/ThemeProvider.astro"
|
|
133
|
+
},
|
|
134
|
+
"./components/Header.astro": {
|
|
135
|
+
"types": "./components/Header.astro.tsx",
|
|
136
|
+
"import": "./components/Header.astro"
|
|
137
|
+
},
|
|
138
|
+
"./components/PageTitle.astro": {
|
|
139
|
+
"types": "./components/PageTitle.astro.tsx",
|
|
140
|
+
"import": "./components/PageTitle.astro"
|
|
141
|
+
},
|
|
142
|
+
"./components/ThemeSelect.astro": {
|
|
143
|
+
"types": "./components/ThemeSelect.astro.tsx",
|
|
144
|
+
"import": "./components/ThemeSelect.astro"
|
|
145
|
+
},
|
|
146
|
+
"./components/Hero.astro": {
|
|
147
|
+
"types": "./components/Hero.astro.tsx",
|
|
148
|
+
"import": "./components/Hero.astro"
|
|
149
|
+
},
|
|
150
|
+
"./components/Pagination.astro": {
|
|
151
|
+
"types": "./components/Pagination.astro.tsx",
|
|
152
|
+
"import": "./components/Pagination.astro"
|
|
153
|
+
},
|
|
154
|
+
"./components/TwoColumnContent.astro": {
|
|
155
|
+
"types": "./components/TwoColumnContent.astro.tsx",
|
|
156
|
+
"import": "./components/TwoColumnContent.astro"
|
|
157
|
+
},
|
|
158
|
+
"./components/Search.astro": {
|
|
159
|
+
"types": "./components/Search.astro.tsx",
|
|
160
|
+
"import": "./components/Search.astro"
|
|
161
|
+
},
|
|
162
|
+
"./internal": "./internal.ts",
|
|
163
|
+
"./props": "./props.ts",
|
|
164
|
+
"./schema": "./schema.ts",
|
|
165
|
+
"./loaders": "./loaders.ts",
|
|
166
|
+
"./route-data": "./route-data.ts",
|
|
167
|
+
"./types": "./types.ts",
|
|
168
|
+
"./expressive-code": {
|
|
169
|
+
"types": "./expressive-code.d.ts",
|
|
170
|
+
"default": "./expressive-code.mjs"
|
|
171
|
+
},
|
|
172
|
+
"./expressive-code/hast": {
|
|
173
|
+
"types": "./integrations/expressive-code/hast.d.ts",
|
|
174
|
+
"default": "./integrations/expressive-code/hast.mjs"
|
|
175
|
+
},
|
|
176
|
+
"./routes/*": "./routes/*",
|
|
177
|
+
"./style/markdown.css": "./style/markdown.css"
|
|
178
|
+
},
|
|
179
|
+
"peerDependencies": {
|
|
180
|
+
"astro": "^5.5.0"
|
|
181
|
+
},
|
|
182
|
+
"devDependencies": {
|
|
183
|
+
"@playwright/test": "^1.45.0",
|
|
184
|
+
"@types/node": "^18.16.19",
|
|
185
|
+
"@vitest/coverage-v8": "^3.0.5",
|
|
186
|
+
"astro": "^5.6.1",
|
|
187
|
+
"linkedom": "^0.18.4",
|
|
188
|
+
"vitest": "^3.0.5"
|
|
189
|
+
},
|
|
190
|
+
"dependencies": {
|
|
191
|
+
"@astrojs/markdown-remark": "^6.3.1",
|
|
192
|
+
"@astrojs/mdx": "^4.2.3",
|
|
193
|
+
"@astrojs/sitemap": "^3.3.0",
|
|
194
|
+
"@pagefind/default-ui": "^1.3.0",
|
|
195
|
+
"@types/hast": "^3.0.4",
|
|
196
|
+
"@types/js-yaml": "^4.0.9",
|
|
197
|
+
"@types/mdast": "^4.0.4",
|
|
198
|
+
"astro-expressive-code": "^0.41.1",
|
|
199
|
+
"bcp-47": "^2.1.0",
|
|
200
|
+
"hast-util-from-html": "^2.0.1",
|
|
201
|
+
"hast-util-select": "^6.0.2",
|
|
202
|
+
"hast-util-to-string": "^3.0.0",
|
|
203
|
+
"hastscript": "^9.0.0",
|
|
204
|
+
"i18next": "^23.11.5",
|
|
205
|
+
"js-yaml": "^4.1.0",
|
|
206
|
+
"klona": "^2.0.6",
|
|
207
|
+
"magic-string": "^0.30.17",
|
|
208
|
+
"mdast-util-directive": "^3.0.0",
|
|
209
|
+
"mdast-util-to-markdown": "^2.1.0",
|
|
210
|
+
"mdast-util-to-string": "^4.0.0",
|
|
211
|
+
"pagefind": "^1.3.0",
|
|
212
|
+
"rehype": "^13.0.1",
|
|
213
|
+
"rehype-format": "^5.0.0",
|
|
214
|
+
"remark-directive": "^3.0.0",
|
|
215
|
+
"ultrahtml": "^1.6.0",
|
|
216
|
+
"unified": "^11.0.5",
|
|
217
|
+
"unist-util-visit": "^5.0.0",
|
|
218
|
+
"vfile": "^6.0.2"
|
|
219
|
+
},
|
|
220
|
+
"publishConfig": {
|
|
221
|
+
"provenance": true
|
|
222
|
+
},
|
|
223
|
+
"scripts": {
|
|
224
|
+
"test": "vitest",
|
|
225
|
+
"test:legacy": "LEGACY_COLLECTIONS=true vitest",
|
|
226
|
+
"test:coverage": "vitest run --coverage",
|
|
227
|
+
"test:e2e": "pnpm test:e2e:chrome",
|
|
228
|
+
"test:e2e:chrome": "playwright install --with-deps chromium && playwright test --project chrome",
|
|
229
|
+
"test:e2e:firefox": "playwright install --with-deps firefox && playwright test --project firefox"
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
export default __treeseedJson;
|
|
233
|
+
export const name = __treeseedJson.name;
|
|
234
|
+
export const version = __treeseedJson.version;
|
|
235
|
+
export const description = __treeseedJson.description;
|
|
236
|
+
export const keywords = __treeseedJson.keywords;
|
|
237
|
+
export const author = __treeseedJson.author;
|
|
238
|
+
export const license = __treeseedJson.license;
|
|
239
|
+
export const repository = __treeseedJson.repository;
|
|
240
|
+
export const bugs = __treeseedJson.bugs;
|
|
241
|
+
export const homepage = __treeseedJson.homepage;
|
|
242
|
+
export const type = __treeseedJson.type;
|
|
243
|
+
export const exports = __treeseedJson.exports;
|
|
244
|
+
export const peerDependencies = __treeseedJson.peerDependencies;
|
|
245
|
+
export const devDependencies = __treeseedJson.devDependencies;
|
|
246
|
+
export const dependencies = __treeseedJson.dependencies;
|
|
247
|
+
export const publishConfig = __treeseedJson.publishConfig;
|
|
248
|
+
export const scripts = __treeseedJson.scripts;
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { render } from 'astro:content';
|
|
3
|
+
import Page from '../components/Page.astro';
|
|
4
|
+
import { getRoute, useRouteData } from '../utils/routing/data';
|
|
5
|
+
import { attachRouteDataAndRunMiddleware } from '../utils/routing/middleware';
|
|
6
|
+
|
|
7
|
+
const route = await getRoute(Astro);
|
|
8
|
+
/**
|
|
9
|
+
* The call to `render` from `astro:content` is purposely made in this file to work around a
|
|
10
|
+
* development mode head propagation issue which is heavily tied to `astro:content` imports. Even
|
|
11
|
+
* though we have a test for this, refactoring and moving this code to a different file should be
|
|
12
|
+
* avoided for now until the linked issue which also contains more details is resolved.
|
|
13
|
+
*
|
|
14
|
+
* @see https://github.com/withastro/astro/issues/13724
|
|
15
|
+
*/
|
|
16
|
+
const renderResult = await render(route.entry);
|
|
17
|
+
|
|
18
|
+
await attachRouteDataAndRunMiddleware(Astro, useRouteData(Astro, route, renderResult));
|
|
19
|
+
|
|
20
|
+
const { Content, entry } = Astro.locals.starlightRoute;
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<Page>{Content && <Content frontmatter={entry.data} />}</Page>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { getRouteBySlugParam } from '../../utils/routing';
|
|
3
|
+
import CommonPage from '../common.astro';
|
|
4
|
+
|
|
5
|
+
export const prerender = false;
|
|
6
|
+
|
|
7
|
+
const route = getRouteBySlugParam(Astro.params.slug);
|
|
8
|
+
|
|
9
|
+
if (route === undefined) {
|
|
10
|
+
return new Response(null, { status: 404 });
|
|
11
|
+
}
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<CommonPage />
|