--- // the top of the page lives here instead of a top bar: logo and theme toggle, // 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 "@astrojs/starlight/components/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]; const { sidebar } = Astro.locals.starlightRoute; const links = (entries: Entry[]) => entries.filter((e) => e.type === "link"); ---