Understanding Documentation Structure
Learn how the documentation structure works with sections, subsections, and documents
Understanding Documentation Structure
The documentation uses a hierarchical structure that automatically creates a collapsible sidebar navigation.
How It Works
The sidebar automatically organizes your docs into three levels:
- Sections (top level) - Created from the first folder name
- Subsections (second level) - Created from nested folders
- Documents (individual pages) - The actual MDX files
Example Structure
Sidebar Display
This structure creates:
-
π Guide (collapsible section)
- π Overview
- π Getting Started (collapsible subsection)
- π Overview
- π Structure
- π Features (collapsible subsection)
- π Overview
- π Callouts
-
π Knowledge Base (collapsible section)
- π Overview
- π Foundations (collapsible subsection)
- π Overview
Overview Pages
If you create an overview.mdx file in a section directory, the section title becomes clickable:
Custom Ordering
You can define custom order for sections and subsections. See Custom Section Ordering for details.
Best Practices
- Use descriptive folder names: They become section titles
- Keep folder names lowercase: Use hyphens for spaces (e.g.,
getting-started) - Group related docs: Put related documents in the same section
- Use subsections sparingly: Only when you have many related docs
- Create overview pages: Add overview pages for major sections
Next Steps
- Creating Your First Document - Create your first page
- Adding Documentation - Detailed guide on adding docs