@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,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
import Icon from '../user-components/Icon.astro';
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<starlight-menu-button class="print:hidden">
|
|
6
|
+
<button
|
|
7
|
+
aria-expanded="false"
|
|
8
|
+
aria-label={Astro.locals.t('menuButton.accessibleLabel')}
|
|
9
|
+
aria-controls="starlight__sidebar"
|
|
10
|
+
class="sl-flex md:sl-hidden"
|
|
11
|
+
>
|
|
12
|
+
<Icon name="bars" class="open-menu" />
|
|
13
|
+
<Icon name="close" class="close-menu" />
|
|
14
|
+
</button>
|
|
15
|
+
</starlight-menu-button>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
class StarlightMenuButton extends HTMLElement {
|
|
19
|
+
btn = this.querySelector('button')!;
|
|
20
|
+
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
// Toggle `aria-expanded` state when a user clicks the button.
|
|
24
|
+
this.btn.addEventListener('click', () => this.toggleExpanded());
|
|
25
|
+
|
|
26
|
+
// Close the menu when a user presses the escape key.
|
|
27
|
+
const parentNav = this.closest('nav');
|
|
28
|
+
if (parentNav) {
|
|
29
|
+
parentNav.addEventListener('keyup', (e) => this.closeOnEscape(e));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
setExpanded(expanded: boolean) {
|
|
34
|
+
this.setAttribute('aria-expanded', String(expanded));
|
|
35
|
+
document.body.toggleAttribute('data-mobile-menu-expanded', expanded);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
toggleExpanded() {
|
|
39
|
+
this.setExpanded(this.getAttribute('aria-expanded') !== 'true');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
closeOnEscape(e: KeyboardEvent) {
|
|
43
|
+
if (e.code === 'Escape') {
|
|
44
|
+
this.setExpanded(false);
|
|
45
|
+
this.btn.focus();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
customElements.define('starlight-menu-button', StarlightMenuButton);
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<style>
|
|
54
|
+
@layer starlight.core {
|
|
55
|
+
button {
|
|
56
|
+
position: fixed;
|
|
57
|
+
top: calc((var(--sl-nav-height) - var(--sl-menu-button-size)) / 2);
|
|
58
|
+
inset-inline-end: var(--sl-nav-pad-x);
|
|
59
|
+
z-index: var(--sl-z-index-navbar);
|
|
60
|
+
border: 0;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
width: var(--sl-menu-button-size);
|
|
63
|
+
height: var(--sl-menu-button-size);
|
|
64
|
+
padding: 0.5rem;
|
|
65
|
+
background-color: var(--sl-color-white);
|
|
66
|
+
color: var(--sl-color-black);
|
|
67
|
+
box-shadow: var(--sl-shadow-md);
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[aria-expanded='true'] button {
|
|
72
|
+
background-color: var(--sl-color-gray-2);
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[aria-expanded='true'] button .open-menu {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:not([aria-expanded='true']) button .close-menu {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:global([data-theme='light']) button {
|
|
85
|
+
background-color: var(--sl-color-black);
|
|
86
|
+
color: var(--sl-color-white);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:global([data-theme='light']) [aria-expanded='true'] button {
|
|
90
|
+
background-color: var(--sl-color-gray-5);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
</style>
|
|
94
|
+
|
|
95
|
+
<style is:global>
|
|
96
|
+
@layer starlight.core {
|
|
97
|
+
[data-mobile-menu-expanded] {
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (min-width: 50rem) {
|
|
102
|
+
[data-mobile-menu-expanded] {
|
|
103
|
+
overflow: auto;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
---
|
|
2
|
+
import Icon from '../user-components/Icon.astro';
|
|
3
|
+
import TableOfContentsList from './TableOfContents/TableOfContentsList.astro';
|
|
4
|
+
|
|
5
|
+
const { toc } = Astro.locals.starlightRoute;
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
{
|
|
9
|
+
toc && (
|
|
10
|
+
<mobile-starlight-toc data-min-h={toc.minHeadingLevel} data-max-h={toc.maxHeadingLevel}>
|
|
11
|
+
<nav aria-labelledby="starlight__on-this-page--mobile">
|
|
12
|
+
<details id="starlight__mobile-toc">
|
|
13
|
+
<summary id="starlight__on-this-page--mobile" class="sl-flex">
|
|
14
|
+
<span class="toggle sl-flex">
|
|
15
|
+
{Astro.locals.t('tableOfContents.onThisPage')}
|
|
16
|
+
<Icon name={'right-caret'} class="caret" size="1rem" />
|
|
17
|
+
</span>
|
|
18
|
+
<span class="display-current" />
|
|
19
|
+
</summary>
|
|
20
|
+
<div class="dropdown">
|
|
21
|
+
<TableOfContentsList toc={toc.items} isMobile />
|
|
22
|
+
</div>
|
|
23
|
+
</details>
|
|
24
|
+
</nav>
|
|
25
|
+
</mobile-starlight-toc>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
<style>
|
|
30
|
+
@layer starlight.core {
|
|
31
|
+
nav {
|
|
32
|
+
position: fixed;
|
|
33
|
+
z-index: var(--sl-z-index-toc);
|
|
34
|
+
top: calc(var(--sl-nav-height) - 1px);
|
|
35
|
+
inset-inline: 0;
|
|
36
|
+
border-top: 1px solid var(--sl-color-gray-5);
|
|
37
|
+
background-color: var(--sl-color-bg-nav);
|
|
38
|
+
}
|
|
39
|
+
@media (min-width: 50rem) {
|
|
40
|
+
nav {
|
|
41
|
+
inset-inline-start: var(--sl-content-inline-start, 0);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
summary {
|
|
46
|
+
gap: 0.5rem;
|
|
47
|
+
align-items: center;
|
|
48
|
+
height: var(--sl-mobile-toc-height);
|
|
49
|
+
border-bottom: 1px solid var(--sl-color-hairline-shade);
|
|
50
|
+
padding: 0.5rem 1rem;
|
|
51
|
+
font-size: var(--sl-text-xs);
|
|
52
|
+
outline-offset: var(--sl-outline-offset-inside);
|
|
53
|
+
}
|
|
54
|
+
summary::marker,
|
|
55
|
+
summary::-webkit-details-marker {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.toggle {
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
gap: 1rem;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
border: 1px solid var(--sl-color-gray-5);
|
|
65
|
+
border-radius: 0.5rem;
|
|
66
|
+
padding-block: 0.5rem;
|
|
67
|
+
padding-inline-start: 0.75rem;
|
|
68
|
+
padding-inline-end: 0.5rem;
|
|
69
|
+
line-height: 1;
|
|
70
|
+
background-color: var(--sl-color-black);
|
|
71
|
+
user-select: none;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
74
|
+
details[open] .toggle {
|
|
75
|
+
color: var(--sl-color-white);
|
|
76
|
+
border-color: var(--sl-color-accent);
|
|
77
|
+
}
|
|
78
|
+
details .toggle:hover {
|
|
79
|
+
color: var(--sl-color-white);
|
|
80
|
+
border-color: var(--sl-color-gray-2);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:global([dir='rtl']) .caret {
|
|
84
|
+
transform: rotateZ(180deg);
|
|
85
|
+
}
|
|
86
|
+
details[open] .caret {
|
|
87
|
+
transform: rotateZ(90deg);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.display-current {
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
color: var(--sl-color-white);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.dropdown {
|
|
98
|
+
--border-top: 1px;
|
|
99
|
+
margin-top: calc(-1 * var(--border-top));
|
|
100
|
+
border: var(--border-top) solid var(--sl-color-gray-6);
|
|
101
|
+
border-top-color: var(--sl-color-hairline-shade);
|
|
102
|
+
max-height: calc(85vh - var(--sl-nav-height) - var(--sl-mobile-toc-height));
|
|
103
|
+
overflow-y: auto;
|
|
104
|
+
background-color: var(--sl-color-black);
|
|
105
|
+
box-shadow: var(--sl-shadow-md);
|
|
106
|
+
overscroll-behavior: contain;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</style>
|
|
110
|
+
|
|
111
|
+
<script>
|
|
112
|
+
import { StarlightTOC } from './TableOfContents/starlight-toc';
|
|
113
|
+
|
|
114
|
+
class MobileStarlightTOC extends StarlightTOC {
|
|
115
|
+
override set current(link: HTMLAnchorElement) {
|
|
116
|
+
super.current = link;
|
|
117
|
+
const display = this.querySelector('.display-current') as HTMLSpanElement;
|
|
118
|
+
if (display) display.textContent = link.textContent;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
constructor() {
|
|
122
|
+
super();
|
|
123
|
+
const details = this.querySelector('details');
|
|
124
|
+
if (!details) return;
|
|
125
|
+
const closeToC = () => {
|
|
126
|
+
details.open = false;
|
|
127
|
+
};
|
|
128
|
+
// Close the table of contents whenever a link is clicked.
|
|
129
|
+
details.querySelectorAll('a').forEach((a) => {
|
|
130
|
+
a.addEventListener('click', closeToC);
|
|
131
|
+
});
|
|
132
|
+
// Close the table of contents when a user clicks outside of it.
|
|
133
|
+
window.addEventListener('click', (e) => {
|
|
134
|
+
if (!details.contains(e.target as Node)) closeToC();
|
|
135
|
+
});
|
|
136
|
+
// Or when they press the escape key.
|
|
137
|
+
window.addEventListener('keydown', (e) => {
|
|
138
|
+
if (e.key === 'Escape' && details.open) {
|
|
139
|
+
const hasFocus = details.contains(document.activeElement);
|
|
140
|
+
closeToC();
|
|
141
|
+
if (hasFocus) {
|
|
142
|
+
const summary = details.querySelector('summary');
|
|
143
|
+
if (summary) summary.focus();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
customElements.define('mobile-starlight-toc', MobileStarlightTOC);
|
|
151
|
+
</script>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
// Important that this is the first import so it can override cascade layers order.
|
|
3
|
+
import 'virtual:starlight/user-css';
|
|
4
|
+
|
|
5
|
+
// Starlight nested cascade layers definitions which specify the default order of internal layers.
|
|
6
|
+
import '../style/layers.css';
|
|
7
|
+
|
|
8
|
+
// Built-in CSS styles.
|
|
9
|
+
import '../style/props.css';
|
|
10
|
+
import '../style/reset.css';
|
|
11
|
+
import '../style/asides.css';
|
|
12
|
+
import '../style/util.css';
|
|
13
|
+
import 'virtual:starlight/optional-css';
|
|
14
|
+
|
|
15
|
+
import Banner from 'virtual:starlight/components/Banner';
|
|
16
|
+
import ContentPanel from 'virtual:starlight/components/ContentPanel';
|
|
17
|
+
import FallbackContentNotice from 'virtual:starlight/components/FallbackContentNotice';
|
|
18
|
+
import DraftContentNotice from 'virtual:starlight/components/DraftContentNotice';
|
|
19
|
+
import Footer from 'virtual:starlight/components/Footer';
|
|
20
|
+
import Head from 'virtual:starlight/components/Head';
|
|
21
|
+
import Header from 'virtual:starlight/components/Header';
|
|
22
|
+
import Hero from 'virtual:starlight/components/Hero';
|
|
23
|
+
import MarkdownContent from 'virtual:starlight/components/MarkdownContent';
|
|
24
|
+
import PageFrame from 'virtual:starlight/components/PageFrame';
|
|
25
|
+
import PageSidebar from 'virtual:starlight/components/PageSidebar';
|
|
26
|
+
import PageTitle from 'virtual:starlight/components/PageTitle';
|
|
27
|
+
import Sidebar from 'virtual:starlight/components/Sidebar';
|
|
28
|
+
import SkipLink from 'virtual:starlight/components/SkipLink';
|
|
29
|
+
import ThemeProvider from 'virtual:starlight/components/ThemeProvider';
|
|
30
|
+
import TwoColumnContent from 'virtual:starlight/components/TwoColumnContent';
|
|
31
|
+
|
|
32
|
+
import printHref from '../style/print.css?url&no-inline';
|
|
33
|
+
|
|
34
|
+
const { starlightRoute } = Astro.locals;
|
|
35
|
+
|
|
36
|
+
const pagefindEnabled =
|
|
37
|
+
starlightRoute.entry.slug !== '404' &&
|
|
38
|
+
!starlightRoute.entry.slug.endsWith('/404') &&
|
|
39
|
+
starlightRoute.entry.data.pagefind !== false;
|
|
40
|
+
|
|
41
|
+
const htmlDataAttributes: DOMStringMap = { 'data-theme': 'dark' };
|
|
42
|
+
if (Boolean(starlightRoute.toc)) htmlDataAttributes['data-has-toc'] = '';
|
|
43
|
+
if (starlightRoute.hasSidebar) htmlDataAttributes['data-has-sidebar'] = '';
|
|
44
|
+
if (Boolean(starlightRoute.entry.data.hero)) htmlDataAttributes['data-has-hero'] = '';
|
|
45
|
+
|
|
46
|
+
const mainDataAttributes: DOMStringMap = {};
|
|
47
|
+
if (pagefindEnabled) mainDataAttributes['data-pagefind-body'] = '';
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
<html lang={starlightRoute.lang} dir={starlightRoute.dir} {...htmlDataAttributes}>
|
|
51
|
+
<head>
|
|
52
|
+
<Head />
|
|
53
|
+
<style>
|
|
54
|
+
html:not([data-has-toc]) {
|
|
55
|
+
--sl-mobile-toc-height: 0rem;
|
|
56
|
+
}
|
|
57
|
+
html:not([data-has-sidebar]) {
|
|
58
|
+
--sl-content-width: 67.5rem;
|
|
59
|
+
}
|
|
60
|
+
/* Add scroll padding to ensure anchor headings aren't obscured by nav */
|
|
61
|
+
html {
|
|
62
|
+
/* Additional padding is needed to account for the mobile TOC */
|
|
63
|
+
scroll-padding-top: calc(1.5rem + var(--sl-nav-height) + var(--sl-mobile-toc-height));
|
|
64
|
+
}
|
|
65
|
+
main {
|
|
66
|
+
padding: var(--sl-main-pad);
|
|
67
|
+
}
|
|
68
|
+
@media (min-width: 50em) {
|
|
69
|
+
[data-has-sidebar] {
|
|
70
|
+
--sl-content-inline-start: var(--sl-sidebar-width);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@media (min-width: 72em) {
|
|
74
|
+
html {
|
|
75
|
+
scroll-padding-top: calc(1.5rem + var(--sl-nav-height));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</style>
|
|
79
|
+
<ThemeProvider />
|
|
80
|
+
<link rel="stylesheet" href={printHref} media="print" />
|
|
81
|
+
</head>
|
|
82
|
+
<body>
|
|
83
|
+
<SkipLink />
|
|
84
|
+
<PageFrame>
|
|
85
|
+
<Header slot="header" />
|
|
86
|
+
{starlightRoute.hasSidebar && <Sidebar slot="sidebar" />}
|
|
87
|
+
<script src="./SidebarPersistState.js"></script>
|
|
88
|
+
<TwoColumnContent>
|
|
89
|
+
<PageSidebar slot="right-sidebar" />
|
|
90
|
+
<main
|
|
91
|
+
{...mainDataAttributes}
|
|
92
|
+
lang={starlightRoute.entryMeta.lang}
|
|
93
|
+
dir={starlightRoute.entryMeta.dir}
|
|
94
|
+
>
|
|
95
|
+
{/* TODO: Revisit how this logic flows. */}
|
|
96
|
+
<Banner />
|
|
97
|
+
{
|
|
98
|
+
starlightRoute.entry.data.hero ? (
|
|
99
|
+
<ContentPanel>
|
|
100
|
+
<Hero />
|
|
101
|
+
<MarkdownContent>
|
|
102
|
+
<slot />
|
|
103
|
+
</MarkdownContent>
|
|
104
|
+
<Footer />
|
|
105
|
+
</ContentPanel>
|
|
106
|
+
) : (
|
|
107
|
+
<>
|
|
108
|
+
<ContentPanel>
|
|
109
|
+
<PageTitle />
|
|
110
|
+
{starlightRoute.entry.data.draft && <DraftContentNotice />}
|
|
111
|
+
{starlightRoute.isFallback && <FallbackContentNotice />}
|
|
112
|
+
</ContentPanel>
|
|
113
|
+
<ContentPanel>
|
|
114
|
+
<MarkdownContent>
|
|
115
|
+
<slot />
|
|
116
|
+
</MarkdownContent>
|
|
117
|
+
<Footer />
|
|
118
|
+
</ContentPanel>
|
|
119
|
+
</>
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
</main>
|
|
123
|
+
</TwoColumnContent>
|
|
124
|
+
</PageFrame>
|
|
125
|
+
</body>
|
|
126
|
+
</html>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
import MobileMenuToggle from 'virtual:starlight/components/MobileMenuToggle';
|
|
3
|
+
|
|
4
|
+
const { hasSidebar } = Astro.locals.starlightRoute;
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<div class="page sl-flex">
|
|
8
|
+
<header class="header"><slot name="header" /></header>
|
|
9
|
+
{
|
|
10
|
+
hasSidebar && (
|
|
11
|
+
<nav class="sidebar print:hidden" aria-label={Astro.locals.t('sidebarNav.accessibleLabel')}>
|
|
12
|
+
<MobileMenuToggle />
|
|
13
|
+
<div id="starlight__sidebar" class="sidebar-pane">
|
|
14
|
+
<div class="sidebar-content sl-flex">
|
|
15
|
+
<slot name="sidebar" />
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</nav>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
<div class="main-frame"><slot /></div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<style>
|
|
25
|
+
@layer starlight.core {
|
|
26
|
+
.page {
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
min-height: 100vh;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.header {
|
|
32
|
+
z-index: var(--sl-z-index-navbar);
|
|
33
|
+
position: fixed;
|
|
34
|
+
inset-inline-start: 0;
|
|
35
|
+
inset-block-start: 0;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: var(--sl-nav-height);
|
|
38
|
+
border-bottom: 1px solid var(--sl-color-hairline-shade);
|
|
39
|
+
padding: var(--sl-nav-pad-y) var(--sl-nav-pad-x);
|
|
40
|
+
padding-inline-end: var(--sl-nav-pad-x);
|
|
41
|
+
background-color: var(--sl-color-bg-nav);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:global([data-has-sidebar]) .header {
|
|
45
|
+
padding-inline-end: calc(
|
|
46
|
+
var(--sl-nav-gap) + var(--sl-nav-pad-x) + var(--sl-menu-button-size)
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sidebar-pane {
|
|
51
|
+
visibility: var(--sl-sidebar-visibility, hidden);
|
|
52
|
+
position: fixed;
|
|
53
|
+
z-index: var(--sl-z-index-menu);
|
|
54
|
+
inset-block: var(--sl-nav-height) 0;
|
|
55
|
+
inset-inline-start: 0;
|
|
56
|
+
width: 100%;
|
|
57
|
+
background-color: var(--sl-color-black);
|
|
58
|
+
overflow-y: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:global([aria-expanded='true']) ~ .sidebar-pane {
|
|
62
|
+
--sl-sidebar-visibility: visible;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.sidebar-content {
|
|
66
|
+
height: 100%;
|
|
67
|
+
min-height: max-content;
|
|
68
|
+
padding: 1rem var(--sl-sidebar-pad-x) 0;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
gap: 1rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (min-width: 50rem) {
|
|
74
|
+
.sidebar-content::after {
|
|
75
|
+
content: '';
|
|
76
|
+
padding-bottom: 1px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.main-frame {
|
|
81
|
+
padding-top: calc(var(--sl-nav-height) + var(--sl-mobile-toc-height));
|
|
82
|
+
padding-inline-start: var(--sl-content-inline-start);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media (min-width: 50rem) {
|
|
86
|
+
:global([data-has-sidebar]) .header {
|
|
87
|
+
padding-inline-end: var(--sl-nav-pad-x);
|
|
88
|
+
}
|
|
89
|
+
.sidebar-pane {
|
|
90
|
+
--sl-sidebar-visibility: visible;
|
|
91
|
+
width: var(--sl-sidebar-width);
|
|
92
|
+
background-color: var(--sl-color-bg-sidebar);
|
|
93
|
+
border-inline-end: 1px solid var(--sl-color-hairline-shade);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
import MobileTableOfContents from 'virtual:starlight/components/MobileTableOfContents';
|
|
3
|
+
import TableOfContents from 'virtual:starlight/components/TableOfContents';
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
{
|
|
7
|
+
Astro.locals.starlightRoute.toc && (
|
|
8
|
+
<>
|
|
9
|
+
<div class="lg:sl-hidden">
|
|
10
|
+
<MobileTableOfContents />
|
|
11
|
+
</div>
|
|
12
|
+
<div class="right-sidebar-panel sl-hidden lg:sl-block">
|
|
13
|
+
<div class="sl-container">
|
|
14
|
+
<TableOfContents />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
<style>
|
|
22
|
+
@layer starlight.core {
|
|
23
|
+
.right-sidebar-panel {
|
|
24
|
+
padding: 1rem var(--sl-sidebar-pad-x);
|
|
25
|
+
}
|
|
26
|
+
.sl-container {
|
|
27
|
+
width: calc(var(--sl-sidebar-width) - 2 * var(--sl-sidebar-pad-x));
|
|
28
|
+
}
|
|
29
|
+
.right-sidebar-panel :global(h2) {
|
|
30
|
+
color: var(--sl-color-white);
|
|
31
|
+
font-size: var(--sl-text-h5);
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
line-height: var(--sl-line-height-headings);
|
|
34
|
+
margin-bottom: 0.5rem;
|
|
35
|
+
}
|
|
36
|
+
.right-sidebar-panel :global(:where(a)) {
|
|
37
|
+
display: block;
|
|
38
|
+
font-size: var(--sl-text-xs);
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
color: var(--sl-color-gray-3);
|
|
41
|
+
overflow-wrap: anywhere;
|
|
42
|
+
}
|
|
43
|
+
.right-sidebar-panel :global(:where(a):hover) {
|
|
44
|
+
color: var(--sl-color-white);
|
|
45
|
+
}
|
|
46
|
+
@media (min-width: 72rem) {
|
|
47
|
+
.sl-container {
|
|
48
|
+
max-width: calc(
|
|
49
|
+
(
|
|
50
|
+
(
|
|
51
|
+
100vw - var(--sl-sidebar-width) - 2 * var(--sl-content-pad-x) - 2 *
|
|
52
|
+
var(--sl-sidebar-pad-x)
|
|
53
|
+
) * 0.25 /* MAGIC NUMBER 🥲 */
|
|
54
|
+
)
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { PAGE_TITLE_ID } from '../constants';
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<h1 id={PAGE_TITLE_ID}>{Astro.locals.starlightRoute.entry.data.title}</h1>
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
@layer starlight.core {
|
|
9
|
+
h1 {
|
|
10
|
+
margin-top: 1rem;
|
|
11
|
+
font-size: var(--sl-text-h1);
|
|
12
|
+
line-height: var(--sl-line-height-headings);
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
color: var(--sl-color-white);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
import Icon from '../user-components/Icon.astro';
|
|
3
|
+
|
|
4
|
+
const { dir, pagination } = Astro.locals.starlightRoute;
|
|
5
|
+
const { prev, next } = pagination;
|
|
6
|
+
const isRtl = dir === 'rtl';
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<div class="pagination-links print:hidden" dir={dir}>
|
|
10
|
+
{
|
|
11
|
+
prev && (
|
|
12
|
+
<a href={prev.href} rel="prev">
|
|
13
|
+
<Icon name={isRtl ? 'right-arrow' : 'left-arrow'} size="1.5rem" />
|
|
14
|
+
<span>
|
|
15
|
+
{Astro.locals.t('page.previousLink')}
|
|
16
|
+
<br />
|
|
17
|
+
<span class="link-title">{prev.label}</span>
|
|
18
|
+
</span>
|
|
19
|
+
</a>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
{
|
|
23
|
+
next && (
|
|
24
|
+
<a href={next.href} rel="next">
|
|
25
|
+
<Icon name={isRtl ? 'left-arrow' : 'right-arrow'} size="1.5rem" />
|
|
26
|
+
<span>
|
|
27
|
+
{Astro.locals.t('page.nextLink')}
|
|
28
|
+
<br />
|
|
29
|
+
<span class="link-title">{next.label}</span>
|
|
30
|
+
</span>
|
|
31
|
+
</a>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<style>
|
|
37
|
+
@layer starlight.core {
|
|
38
|
+
.pagination-links {
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
|
|
41
|
+
gap: 1rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
a {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
gap: 0.5rem;
|
|
49
|
+
width: 100%;
|
|
50
|
+
flex-basis: calc(50% - 0.5rem);
|
|
51
|
+
flex-grow: 1;
|
|
52
|
+
border: 1px solid var(--sl-color-gray-5);
|
|
53
|
+
border-radius: 0.5rem;
|
|
54
|
+
padding: 1rem;
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
color: var(--sl-color-gray-2);
|
|
57
|
+
box-shadow: var(--sl-shadow-md);
|
|
58
|
+
overflow-wrap: anywhere;
|
|
59
|
+
}
|
|
60
|
+
[rel='next'] {
|
|
61
|
+
justify-content: end;
|
|
62
|
+
text-align: end;
|
|
63
|
+
flex-direction: row-reverse;
|
|
64
|
+
}
|
|
65
|
+
a:hover {
|
|
66
|
+
border-color: var(--sl-color-gray-2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.link-title {
|
|
70
|
+
color: var(--sl-color-white);
|
|
71
|
+
font-size: var(--sl-text-2xl);
|
|
72
|
+
line-height: var(--sl-line-height-headings);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
svg {
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
</style>
|