--- import Default from "@astrojs/starlight/components/Head.astro"; import VtbotStarlight from "astro-vtbot/components/starlight/Base.astro"; import "@fontsource-variable/inter"; import "/src/styles/starlight.css"; // Per-topic accent colors, matching the bomb.sh project cards const ACCENTS = { clack: { dark: "184 100% 48%", light: "184 100% 30%" }, args: { dark: "52 100% 56%", light: "45 100% 33%" }, tab: { dark: "142 100% 47%", light: "142 100% 28%" }, tty: { dark: "300 100% 55%", light: "300 100% 38%" }, router: { dark: "357 100% 62%", light: "357 100% 46%" }, }; const accent = ACCENTS[Astro.locals.starlightRoute.id.split("/")[0]]; // Advertise the markdown twin of this page to agents (404 has none). const routeId = Astro.locals.starlightRoute.id; const markdownHref = routeId === "404" ? null : `/docs/${routeId && routeId !== "index" ? `${routeId}/` : ""}index.md`; --- {markdownHref && ( )} {/* replaceSidebarContent: sidebar content differs per topic (starlight-sidebar-topics) */} { accent && ( {/* The site is dark-only, like bomb.sh: there is no theme switcher, and the stored preference is pinned to dark (covering visitors who picked light before the switcher was removed). This must run before Starlight's ThemeProvider script (rendered later in ). */}