Search Documentation

Search for pages and headings in the documentation

Visual Guide to Navigation

This page shows how the navigation hierarchy appears in the browser, with real examples.

Basic Structure

Minimal Setup (Single Group)

[πŸ“– Learn]
β”œβ”€β”€ Guides
β”‚   β”œβ”€β”€ Getting Started
β”‚   β”œβ”€β”€ Installation
β”‚   └── Quick Start

Configuration:

export const SIDEBAR_NAVIGATION = {
    docs: {
        defaultTab: { label: "Learn", icon: "πŸ“–" },
        groups: [
            {
                id: "guides",
                label: "Guides",
                autoGenerated: true,
            },
        ],
    },
};

Multiple Groups

Two Groups (No Tabs)

[πŸ“– Learn]
β”œβ”€β”€ Getting Started
β”‚   β”œβ”€β”€ Introduction
β”‚   β”œβ”€β”€ Installation
β”‚   └── Quick Start
β”œβ”€β”€ Features
β”‚   β”œβ”€β”€ Auto-Generation
β”‚   β”œβ”€β”€ Breadcrumbs
β”‚   └── Icons
└── Help
    β”œβ”€β”€ FAQ
    └── Troubleshooting

Configuration:

groups: [
    {
        id: "getting-started",
        label: "Getting Started",
        entries: [
            { slug: "getting-started/introduction" },
            { slug: "getting-started/installation" },
            { slug: "getting-started/quick-start" },
        ],
    },
    {
        id: "features",
        label: "Features",
        autoGenerated: true,
    },
    {
        id: "help",
        label: "Help",
        autoGenerated: true,
    },
];

Tabs Navigation

Two Tabs

[Learn] [API Reference]
    ↓
When "Learn" tab is active:
β”œβ”€β”€ Getting Started
β”‚   β”œβ”€β”€ Introduction
β”‚   └── Installation
└── Features

When "API Reference" tab is active:
β”œβ”€β”€ Endpoints
└── Authentication

Configuration:

groups: [
    // Non-tabbed groups go in default tab
    {
        id: "getting-started",
        label: "Getting Started",
        entries: [
            { slug: "getting-started/introduction" },
            { slug: "getting-started/installation" },
        ],
    },
    // This becomes a separate tab
    {
        id: "api",
        label: "API Reference",
        tab: true,
        groups: [
            {
                id: "endpoints",
                label: "Endpoints",
                autoGenerated: true,
            },
            {
                id: "authentication",
                label: "Authentication",
                entries: [{ slug: "api/authentication/oauth" }, { slug: "api/authentication/jwt" }],
            },
        ],
    },
];

Three+ Tabs

Documentation Ecosystem

[Getting Started] [User Guide] [API Reference] [Patterns]
      ↓
When "User Guide" tab is active:
β”œβ”€β”€ Basics
β”‚   β”œβ”€β”€ Installation
β”‚   β”œβ”€β”€ Configuration
β”‚   └── First Steps
β”œβ”€β”€ Intermediate
β”‚   β”œβ”€β”€ Advanced Setup
β”‚   └── Customization
└── Advanced
    β”œβ”€β”€ Performance
    └── Security

Nested Groups (No Tabs)

Single Group with Subgroups

[πŸ“– Learn]
└── Configuration
    β”œβ”€β”€ Basics
    β”‚   β”œβ”€β”€ Overview
    β”‚   β”œβ”€β”€ Site Metadata
    β”‚   └── Sidebar Structure
    └── Advanced
        β”œβ”€β”€ Nested Groups
        β”œβ”€β”€ Tab Management
        └── Custom Styling

Configuration:

groups: [
    {
        id: "configuration",
        label: "Configuration",
        groups: [
            {
                id: "basics",
                label: "Basics",
                entries: [
                    { slug: "configuration/basics/overview" },
                    { slug: "configuration/basics/site-metadata" },
                    { slug: "configuration/basics/sidebar-structure" },
                ],
            },
            {
                id: "advanced",
                label: "Advanced",
                entries: [
                    { slug: "configuration/advanced/nested-groups" },
                    { slug: "configuration/advanced/tab-management" },
                    { slug: "configuration/advanced/custom-styling" },
                ],
            },
        ],
    },
];

Complex: Tabs + Nested Groups

Realistic Documentation

[Learn] [API Reference] [Patterns] [Help]
    ↓
When "API Reference" tab is active:

πŸ“š API Reference
β”œβ”€β”€ Getting Started
β”‚   β”œβ”€β”€ Authentication
β”‚   β”œβ”€β”€ Rate Limiting
β”‚   └── Errors
β”œβ”€β”€ Endpoints
β”‚   └── (auto-generated subgroups per resource)
β”‚       β”œβ”€β”€ Users
β”‚       β”‚   β”œβ”€β”€ List Users
β”‚       β”‚   β”œβ”€β”€ Get User
β”‚       β”‚   └── Create User
β”‚       β”œβ”€β”€ Posts
β”‚       β”‚   β”œβ”€β”€ List Posts
β”‚       β”‚   └── Create Post
β”‚       └── Comments
└── Advanced
    β”œβ”€β”€ Webhooks
    β”œβ”€β”€ Pagination
    └── Filtering

Configuration:

{
    id: "api",
    label: "API Reference",
    tab: true,
    groups: [
        {
            id: "getting-started",
            label: "Getting Started",
            entries: [
                { slug: "api/getting-started/authentication" },
                { slug: "api/getting-started/rate-limiting" },
                { slug: "api/getting-started/errors" },
            ],
        },
        {
            id: "endpoints",
            label: "Endpoints",
            groups: [
                {
                    id: "users",
                    label: "Users",
                    autoGenerated: true,
                },
                {
                    id: "posts",
                    label: "Posts",
                    autoGenerated: true,
                },
                {
                    id: "comments",
                    label: "Comments",
                    autoGenerated: true,
                },
            ],
        },
        {
            id: "advanced",
            label: "Advanced",
            entries: [
                { slug: "api/advanced/webhooks" },
                { slug: "api/advanced/pagination" },
                { slug: "api/advanced/filtering" },
            ],
        },
    ],
}

Each page shows breadcrumbs indicating where you are:

Home > Docs > Getting Started > Installation

All except the current page are clickable:

  • Home -> /docs/
  • Docs -> /docs/
  • Getting Started -> /docs/getting-started/
  • Installation -> (current page, not clickable)

Table of Contents

Right sidebar shows page structure:

On page: "Advanced Configuration"

πŸ“‘ On This Page
β”œβ”€β”€ Overview
β”œβ”€β”€ File Structure
β”‚   β”œβ”€β”€ CSS Files
β”‚   β”œβ”€β”€ TypeScript Files
β”‚   └── Configuration Files
β”œβ”€β”€ Best Practices
└── Troubleshooting

Mobile View

On small screens:

  • Sidebar becomes a hamburger menu (≑)
  • TOC moves to bottom or is hidden
  • Tabs remain clickable at top
  • Navigation stays fully functional
≑ | πŸŒ™ | πŸ”—

Content Area
(Sidebar hidden by default)

Next Steps

Learn to build these structures: