Scaling Your Docs
Documentation structure that works for a 5-page site doesn't work for a 500-page site. This page covers how to evolve your layout as your project grows.
Stage 1: Single project, small team
Start minimal. You probably have a README and a few docs.
At this stage, auto-discovery with globs handles most of the work. New files show up automatically.
Stage 2: Growing docs, more types
As the project matures, you'll find yourself writing conceptual docs, standards, and troubleshooting pages. Add groups for them.
Key changes:
- Getting Started becomes a group with multiple pages (intro + quick start) declared explicitly via
pages - Concepts and Standards get their own groups instead of living in Guides
discover.recursive: trueenables nested subdirectories as sidebar groupsdiscover.sortcontrols per-group ordering
Stage 3: Monorepo with workspaces
When your repo has multiple apps and packages, each workspace gets its own docs directory. Use sidebar islands (nav: { island: true }) to give each workspace a focused sidebar.
Key changes:
- Workspace docs live next to the code —
apps/api/docs/, notdocs/apps/api/ - Sidebar islands (
nav.island: true) keep workspace navigation separate from shared docs - Shared pages (Guides, Concepts, Standards) remain for cross-cutting concerns
For monorepos that want richer card metadata on the home page (icons, tags, deploy badges), promote the workspaces into top-level apps / packages — see Workspaces.
Patterns that scale
Auto-discovery over explicit lists
As you add more docs, maintaining explicit pages arrays becomes tedious. Lean on globs:
Recursive directories for deep content
When a topic needs sub-grouping, use directories and discover.recursive: true:
Each directory becomes a collapsible sidebar group automatically.
Landing pages for group entry points
Pages with children and a path automatically get a generated landing page with cards linking to each child entry:
Navigating to /concepts shows a landing page with cards for each discovered page, orienting the reader before they dive in. Set landing: false to disable this behavior.
Custom sort for intentional ordering
When alphabetical order doesn't tell the right story, use a custom comparator under discover.sort:
When to restructure
Signs your docs need a new stage:
- Contributors ask "where should I put this?" more than once
- Users can't find docs they know exist
- The sidebar is more than 3 scroll heights long
- You have docs that are half-guide, half-explanation
The fix is almost always the same: split a group into two, or promote a nested group into a top-level page.
References
- Recommended — the full recommended layout
- Types — the seven doc types
- Content — ciderpress page configuration, auto-discovery, and glob patterns
- Workspaces — when to promote workspace pages into
apps/packages