diff --git a/apps/docs/blume.config.ts b/apps/docs/blume.config.ts index b26d8d5..94a6646 100644 --- a/apps/docs/blume.config.ts +++ b/apps/docs/blume.config.ts @@ -142,8 +142,11 @@ export default defineConfig({ sidebar: { display: "flat", // "flat" | "group" | "page" }, - // No `featured`: Blume renders it above the `Sidebar` slot, and the - // content-source selector must sit above the pinned links, so - // components/SourceSidebar.astro renders both (Changelog, Appendix). + // The two custom pages (pages/*.astro) as header tabs. Neither is a + // content folder, so the tabs scope nothing out of the sidebar tree. + tabs: [ + { label: "Changelog", path: "/changelog", icon: "clock" }, + { label: "Appendix", path: "/appendix", icon: "library" }, + ], }, }); diff --git a/apps/docs/components/SourceSidebar.astro b/apps/docs/components/SourceSidebar.astro index dca6d9a..6b297f0 100644 --- a/apps/docs/components/SourceSidebar.astro +++ b/apps/docs/components/SourceSidebar.astro @@ -1,17 +1,14 @@ --- /** * The `Sidebar` slot (also the mobile drawer's nav, which defaults to it): a - * Fumadocs-style content-source selector, then the pinned links, then - * Blume's own nav tree scoped to the active source (`sources.ts`). - * - * The pinned links live here, not in `navigation.featured`: Blume renders - * featured links above this slot, so the selector could not sit over them. + * Fumadocs-style content-source selector, then Blume's own nav tree scoped to + * the active source (`sources.ts`). * * The selector is a `
` with Blume's `data-blume-dropdown` light * dismiss (outside press, Escape, focus leaving), like its own NavSelector. */ import Icon from "blume/components/Icon.astro"; -import { withBase, withMountedBase } from "blume/components/islands/base-path.ts"; +import { withMountedBase } from "blume/components/islands/base-path.ts"; import NavTree from "blume/components/layout/NavTree.astro"; import type { UIStrings } from "blume/core/i18n-ui.ts"; import { isUnderPath } from "blume/core/navigation.ts"; @@ -26,11 +23,6 @@ interface Props { fragmentBase?: string; } -const PINNED = [ - { label: "Changelog", href: "/changelog", icon: "clock" }, - { label: "Appendix", href: "/appendix", icon: "library" }, -]; - const { items, currentRoute, ...tree } = Astro.props; const active = @@ -89,25 +81,6 @@ const scoped =
- -