|
2 | 2 | import { defineConfig } from "astro/config"; |
3 | 3 | import starlight from "@astrojs/starlight"; |
4 | 4 | import svelte from "@astrojs/svelte"; |
5 | | -import { newestRelease } from "./src/data/distros.ts"; |
6 | 5 |
|
7 | 6 | export default defineConfig({ |
8 | 7 | site: "https://robostack.github.io", |
@@ -33,25 +32,43 @@ export default defineConfig({ |
33 | 32 | customCss: ["./src/styles/custom.css"], |
34 | 33 | routeMiddleware: "./src/routeData.ts", |
35 | 34 | components: { |
| 35 | + Header: "./src/components/Header.astro", |
| 36 | + Sidebar: "./src/components/Sidebar.astro", |
36 | 37 | SiteTitle: "./src/components/SiteTitle.astro", |
37 | 38 | PageTitle: "./src/components/PageTitle.astro", |
38 | 39 | }, |
39 | 40 | sidebar: [ |
40 | | - // Slugs are set explicitly in each page's frontmatter to keep the |
41 | | - // published mixed-case URLs (`GettingStarted.html`, `FAQ.html`, ...). |
42 | | - { label: "Getting Started", slug: "GettingStarted" }, |
| 41 | + // One top-level group per header tab (src/components/Header.astro); |
| 42 | + // the Sidebar override shows only the current page's group, so these |
| 43 | + // group labels never render. Slugs are set explicitly in each page's |
| 44 | + // frontmatter to keep the published mixed-case URLs |
| 45 | + // (`GettingStarted.html`, `FAQ.html`, ...). |
43 | 46 | { |
44 | | - label: "Alternative to Pixi", |
| 47 | + label: "Docs", |
45 | 48 | items: [ |
46 | | - { label: "Micromamba", slug: "micromamba" }, |
47 | | - { label: "Conda", slug: "conda" }, |
| 49 | + { label: "Getting Started", slug: "GettingStarted" }, |
| 50 | + { |
| 51 | + label: "Alternative to Pixi", |
| 52 | + items: [ |
| 53 | + { label: "Micromamba", slug: "micromamba" }, |
| 54 | + { label: "Conda", slug: "conda" }, |
| 55 | + ], |
| 56 | + }, |
| 57 | + { label: "JupyterRos", slug: "JupyterRos" }, |
| 58 | + { label: "FAQ", slug: "FAQ" }, |
| 59 | + // Cross-listed; its primary section is Community (the last |
| 60 | + // group containing a page wins in the Sidebar override). |
| 61 | + { label: "Contributing", slug: "Contributing" }, |
| 62 | + ], |
| 63 | + }, |
| 64 | + { |
| 65 | + label: "Community", |
| 66 | + items: [ |
| 67 | + { label: "Community Meeting", slug: "CommunityMeeting" }, |
| 68 | + { label: "Support", slug: "support" }, |
| 69 | + { label: "Contributing", slug: "Contributing" }, |
48 | 70 | ], |
49 | 71 | }, |
50 | | - { label: "Packages", link: `/${newestRelease().name}.html` }, |
51 | | - { label: "JupyterRos", slug: "JupyterRos" }, |
52 | | - { label: "Support", slug: "support" }, |
53 | | - { label: "Contributing", slug: "Contributing" }, |
54 | | - { label: "FAQ", slug: "FAQ" }, |
55 | 72 | ], |
56 | 73 | }), |
57 | 74 | svelte(), |
|
0 commit comments