Three-Tier Hierarchy Overview

CelestialDocs uses a clean three-tier system to organize content. Understanding this structure is key to building effective documentation.
The Three Tiers
Tier 1: Entries (Pages)
The foundationβindividual Markdown or MDX files representing one page.
Entry
βββ One file = One page
βββ E.g., guides/installation.md
βββ Becomes URL: /docs/guides/installation
βββ Shows in sidebar as a clickable link
Tier 2: Groups (Collections)
Collections of related entries organized into sidebar sections.
Group: "Getting Started"
βββ Collapsible sidebar section
βββ Contains multiple entries
βββ Examples: Guides, Tutorials, Concepts
βββ Can contain other groups (nested)
Tier 3: Tabs (Contexts)
Top-level navigation that switches the entire sidebar context.
Tab: "API Reference"
βββ Appears at top of sidebar
βββ Can be clicked to switch navigation context
βββ Contains multiple groups
βββ Perfect for separating major sections
Hierarchy Visualization
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Web Browser β
β β
β [Learn] [Getting Started] [API Reference] [Guides] β
β β Tabs β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Sidebar (current tab: "Getting Started") β β
β β β β
β β π Getting Started (Group) β β
β β βββ Installation (Entry) <- clickable link β β
β β βββ Quick Start (Entry) <- clickable link β β
β β βββ Configuration (Entry) <- clickable link β β
β β β β
β β π Related Sections (Group) β β
β β βββ FAQ (Entry) β β
β β βββ Troubleshooting (Entry) β β
β β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β (When user clicks "API Reference" tab, entire sidebar β
β switches to show that tab's groups and entries) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
How They Connect
File System -> Configuration -> UI
Step 1: File System
content/my-docs/
βββ getting-started/
β βββ introduction.md (File)
β βββ installation.md (File)
β βββ quick-start.md (File)
βββ api/
βββ endpoints.md (File)
βββ authentication.md (File)
β (Configuration connects files to groups)
Step 2: Configuration (data/config.ts)
groups: [
{
id: "getting-started",
label: "Getting Started",
autoGenerated: true, <- Discovers files from folder
},
{
id: "api",
label: "API Reference",
tab: true, <- Makes this a tab
autoGenerated: true,
},
]
β (System renders configuration as UI)
Step 3: User Interface
[Learn] [Getting Started] [API Reference] <- Tabs
β
π Getting Started <- Group
βββ Introduction <- Entry
βββ Installation <- Entry
βββ Quick Start <- Entry
Full Example: Placing an Entry
Letβs trace how a single file becomes a clickable link:
1. Create the File
# content/my-docs/guides/performance.md
---
title: "Performance Optimization"
description: "Tips for optimizing your system"
---
# Performance Optimization
Content about performance...
2. Register the Collection
// data/config.ts
export const CONTENT = {
systems: [
{
id: "my-docs",
dir: "content/my-docs",
route: "/my-docs",
},
],
};
3. Configure the Group
// data/config.ts
export const SIDEBAR_NAVIGATION = {
"my-docs": {
defaultTab: { label: "Docs", icon: "π" },
groups: [
{
id: "guides",
label: "User Guides",
autoGenerated: true, // Scans content/my-docs/guides/
},
],
},
};
4. Result
- File:
content/my-docs/guides/performance.md - Slug:
guides/performance - URL:
https://yourdocs.com/my-docs/guides/performance - Sidebar: Shows βPerformance Optimizationβ under βUser Guidesβ group
- Navigation: Clickable link that users can click to read the page
Scaling the Hierarchy
The three-tier system scales beautifully:
Small Documentation (10-50 pages)
βββ Default Tab
βββ Single Group (auto-generated)
βββ Entry 1
βββ Entry 2
βββ Entry 3
Medium Documentation (50-200 pages)
βββ Default Tab
βββ Group 1 (Getting Started)
βββ Group 2 (Features)
βββ Group 3 (Advanced)
Large Documentation (200-1000 pages)
βββ Tab 1: User Guide
β βββ Group 1: Getting Started
β βββ Group 2: Features
β β βββ Subgroup A
β β βββ Subgroup B
β βββ Group 3: Advanced
βββ Tab 2: API Reference
β βββ Group 1: Endpoints
β βββ Group 2: Authentication
β βββ Group 3: Webhooks
βββ Tab 3: Patterns & Examples
βββ Group 1: Common Patterns (auto-generated)
Enterprise Documentation (1000+ pages)
βββ Tab 1: Getting Started
βββ Tab 2: User Documentation
β βββ Group: Basics
β βββ Group: Intermediate
β β βββ Subgroup: Configuration
β β βββ Subgroup: Deployment
β βββ Group: Advanced
β βββ Subgroup: Performance
β βββ Subgroup: Security
β βββ Subgroup: Architecture
βββ Tab 3: API Reference
β βββ Group: v1 (Legacy)
β βββ Group: v2 (Current)
β βββ Subgroup: Authentication
β βββ Subgroup: Endpoints
β βββ Subgroup: Webhooks
βββ Tab 4: Help & Support
Key Principles
- Entries are leaves - Theyβre always at the bottom; you canβt put groups inside entries
- Groups are organizational - They exist to group entries logically
- Tabs are contextual - They switch entire navigation experiences
- Nesting has limits - 3-4 levels is usually optimal; more gets confusing
- Structure mirrors files - Your folder structure should match your navigation
Next Steps
Now understand the visual representation:
Or learn to configure: