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:

  1. Sections (top level) - Created from the first folder name
  2. Subsections (second level) - Created from nested folders
  3. Documents (individual pages) - The actual MDX files

Example Structure

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

  1. Use descriptive folder names: They become section titles
  2. Keep folder names lowercase: Use hyphens for spaces (e.g., getting-started)
  3. Group related docs: Put related documents in the same section
  4. Use subsections sparingly: Only when you have many related docs
  5. Create overview pages: Add overview pages for major sections

Next Steps