Search Documentation

Search for pages and headings in the documentation

Independent Navigation Per Collection

Each collection in CelestialDocs is completely independent. They don’t affect each otherβ€”different navigation structures, different configurations, different rules.

Independence Model

Collection 1: docs          Collection 2: api
β”œβ”€β”€ Route: /docs            β”œβ”€β”€ Route: /api
β”œβ”€β”€ Navigation: Tabs        β”œβ”€β”€ Navigation: Nested groups
β”œβ”€β”€ Auto-gen: Yes           β”œβ”€β”€ Auto-gen: No
└── Style: Simple           └── Style: Complex

Each collection:

  • Has its own folder
  • Has its own route prefix
  • Has its own sidebar navigation config
  • Can use different generation strategies
  • Can have different structures
  • Can have different numbers of tabs/groups

Configuration Example

export const SIDEBAR_NAVIGATION = {
    // Collection 1: Simple auto-generated
    docs: {
        defaultTab: { label: "Learn", icon: "πŸ“–" },
        groups: [
            { id: "guides", label: "Guides", autoGenerated: true },
            { id: "api", label: "API", autoGenerated: true },
        ],
    },

    // Collection 2: Complex with tabs and nesting
    platform: {
        defaultTab: { label: "Getting Started", icon: "πŸš€" },
        groups: [
            {
                id: "user-guide",
                label: "User Guide",
                tab: true,
                groups: [
                    { id: "basics", label: "Basics", autoGenerated: true },
                    {
                        id: "advanced",
                        label: "Advanced",
                        groups: [
                            { id: "performance", label: "Performance", autoGenerated: true },
                            { id: "security", label: "Security", autoGenerated: true },
                        ],
                    },
                ],
            },
            {
                id: "api",
                label: "API Reference",
                tab: true,
                entries: [{ slug: "api/endpoints" }, { slug: "api/authentication" }],
            },
        ],
    },
};

Collection 1 (docs):

  • Simple two-group structure
  • Fully auto-generated
  • No tabs

Collection 2 (platform):

  • Complex with 2 tabs
  • Nested groups
  • Mix of auto and manual

Same codebase, completely different structures!

Tabs only exist within their collection. Switching tabs within /docs/* won’t affect /api/* navigation.

User on: /docs/guides/installation
Tabs available: (none - docs collection has no tabs)

User on: /api/v2/endpoints
Tabs available: [v1 Legacy] [v2 Current] [v3 Beta]
(Only for api collection)

Independent File Organization

Files are organized per collection, matching the navigation structure:

content/
β”œβ”€β”€ docs/                    (Collection: docs)
β”‚   β”œβ”€β”€ guides/
β”‚   β”‚   β”œβ”€β”€ intro.md
β”‚   β”‚   β”œβ”€β”€ setup.md
β”‚   β”‚   └── advanced.md
β”‚   └── api/
β”‚       β”œβ”€β”€ overview.md
β”‚       └── reference.md
β”‚
β”œβ”€β”€ platform/                (Collection: platform)
β”‚   β”œβ”€β”€ getting-started/
β”‚   β”‚   β”œβ”€β”€ setup.md
β”‚   β”‚   └── first-app.md
β”‚   β”œβ”€β”€ user-guide/
β”‚   β”‚   β”œβ”€β”€ basics/
β”‚   β”‚   └── advanced/
β”‚   β”‚       β”œβ”€β”€ performance/
β”‚   β”‚       └── security/
β”‚   └── api/
β”‚       β”œβ”€β”€ endpoints/
β”‚       β”œβ”€β”€ authentication.md
β”‚       └── webhooks.md

No interaction between collectionsβ€”each maintains its own structure.

Configuration Independence

Each collection has independent settings:

Docs Collection (Auto-Discovery)

groups: [{ id: "guides", label: "Guides", autoGenerated: true }];

New files appear automatically.

Platform Collection (Manual Control)

groups: [
    {
        id: "endpoints",
        label: "Endpoints",
        entries: [{ slug: "api/endpoints/users" }, { slug: "api/endpoints/posts" }],
    },
];

Only listed entries appear.

Same system, different strategies.

Breadcrumbs are collection-specific:

docs collection:
Home > Docs > Guides > Installation

platform collection:
Home > Platform > User Guide > Basics > Setup

Users understand they’re in different documentation systems.

Next Steps

Learn about: