diff --git a/site/src/layouts/DocLayout.astro b/site/src/layouts/DocLayout.astro index f2608de..1ea835e 100644 --- a/site/src/layouts/DocLayout.astro +++ b/site/src/layouts/DocLayout.astro @@ -9,6 +9,23 @@ const headings: MarkdownHeading[] = Astro.props.headings ?? []; const isIndex = Astro.url.pathname === "/" || Astro.url.pathname === "/index.html"; const h2s = headings.filter((h) => h.depth === 2); +const docsSections = [ + { + title: "Start", + items: [ + { href: "/installation", label: "Installation" }, + { href: "/quick-start", label: "Quick start" }, + ], + }, + { + title: "Reference", + items: [ + { href: "/commands", label: "Commands" }, + { href: "/architecture", label: "Architecture" }, + { href: "/runtime-contract", label: "Runtime contract" }, + ], + }, +]; function formatTocText(text: string): string { if (!text.includes(" ") && /[-.]/.test(text)) { @@ -30,7 +47,7 @@ function formatTocText(text: string): string { { !isIndex && ( -