Organizing the Sidebar
The sidebar isn't auto-generated from the docs/ folder structure - it's defined explicitly in docs.config.ts, so you control labels, grouping, and ordering:
docs.config.ts
sidebar: [
{
label: "Guides",
items: [
{ label: "Writing Content", slug: "guides/writing-content" },
{ label: "Organizing the Sidebar", slug: "guides/organizing-sidebar" },
],
},
],
Each slug is the page's path under docs/, without the file extension. A page that exists under docs/ but isn't listed in sidebar is still built and reachable by direct link - it just won't appear in the nav.