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 sections for them.
Key changes:
- Getting Started becomes a section with multiple pages (intro + quickstart)
- Concepts and Standards get their own sections instead of living in Guides
recursive: trueenables nested subdirectories as sidebar groups
Stage 3: Monorepo with workspaces
When your repo has multiple apps and packages, each workspace gets its own docs directory. Use isolated sections to give each workspace a focused sidebar.
Key changes:
- Workspace docs live next to the code —
apps/api/docs/, notdocs/apps/api/ - Standalone sidebars keep workspace navigation separate from shared docs
- Shared sections (Guides, Concepts, Standards) remain for cross-cutting concerns
Patterns that scale
Auto-discovery over explicit lists
As you add more docs, maintaining explicit items arrays becomes tedious. Lean on globs:
Recursive directories for deep content
When a topic needs sub-grouping, use directories and recursive: true:
Each directory becomes a collapsible sidebar group automatically.
Landing pages for section entry points
Sections 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 into individual pages. 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:
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 section into two, or promote a nested group into a top-level section.
References
- Recommended — the full recommended layout
- Types — the seven doc types
- Content — ciderpress section configuration, auto-discovery, and glob patterns