diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 5460cc5d2..71a01db49 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -84,7 +84,7 @@ export default defineConfig({ MobileMenuFooter: "./src/components/MobileMenuFooter.astro", PageTitle: "./src/components/PageTitle.astro", Sidebar: "./src/components/Sidebar.astro", - ThemeSelect: "./src/components/ThemeToggle.astro", + ThemeProvider: "./src/components/ThemeProvider.astro", }, expressiveCode: { // same palettes as the web app's syntax tokens @@ -137,13 +137,12 @@ export default defineConfig({ ], }, { - label: "CI", + label: "Running CI", items: [ "spindles", "spindles/writing-workflows", "spindles/workflows", "spindles/secrets", - "spindles/runs", "spindles/webhooks", ], }, diff --git a/docs/src/components/Header.astro b/docs/src/components/Header.astro index b93ff311a..2ed081c32 100644 --- a/docs/src/components/Header.astro +++ b/docs/src/components/Header.astro @@ -4,7 +4,6 @@ // there is none: one search per page import Search from "./Search.astro"; import SiteTitle from "@astrojs/starlight/components/SiteTitle.astro"; -import ThemeToggle from "./ThemeToggle.astro"; const { hasSidebar } = Astro.locals.starlightRoute; --- @@ -13,6 +12,5 @@ const { hasSidebar } = Astro.locals.starlightRoute;
{!hasSidebar && } -
diff --git a/docs/src/components/MobileMenuFooter.astro b/docs/src/components/MobileMenuFooter.astro index a587cc778..0bf4c5a2d 100644 --- a/docs/src/components/MobileMenuFooter.astro +++ b/docs/src/components/MobileMenuFooter.astro @@ -1,4 +1,3 @@ --- -// the header already has the theme toggle and there are no social links or -// languages, so the mobile menu needs no footer +// there are no social links or languages, so the mobile menu needs no footer --- diff --git a/docs/src/components/Sidebar.astro b/docs/src/components/Sidebar.astro index e46cfb7cb..a8a9ac332 100644 --- a/docs/src/components/Sidebar.astro +++ b/docs/src/components/Sidebar.astro @@ -1,12 +1,11 @@ --- -// the top of the page lives here instead of a top bar: logo and theme toggle, +// the top of the page lives here instead of a top bar: logo, // then search, then the nav. the nav is starlight's sidebar data rendered flat: // group headings and links, no collapsing, no indentation (styles in tangled.css) import type { StarlightRouteData } from "@astrojs/starlight/route-data"; import Search from "./Search.astro"; import SidebarPersister from "@astrojs/starlight/components/SidebarPersister.astro"; import SiteTitle from "@astrojs/starlight/components/SiteTitle.astro"; -import ThemeToggle from "./ThemeToggle.astro"; type Entry = StarlightRouteData["sidebar"][number]; @@ -16,7 +15,6 @@ const links = (entries: Entry[]) => entries.filter((e) => e.type === "link"); diff --git a/docs/src/components/ThemeProvider.astro b/docs/src/components/ThemeProvider.astro new file mode 100644 index 000000000..cab622dc9 --- /dev/null +++ b/docs/src/components/ThemeProvider.astro @@ -0,0 +1,10 @@ + diff --git a/docs/src/components/ThemeToggle.astro b/docs/src/components/ThemeToggle.astro deleted file mode 100644 index b77255916..000000000 --- a/docs/src/components/ThemeToggle.astro +++ /dev/null @@ -1,53 +0,0 @@ ---- -// replaces starlight's three-way theme select with a light/dark toggle. it -// keeps starlight's storage key, so the head script still applies the stored -// theme before paint, and follows the system until someone picks one -import Button from "$lib/components/ui/Button.svelte"; -import Sun from "~icons/lucide/sun"; -import Moon from "~icons/lucide/moon"; ---- - - -

Don't have an account?