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!
Navigation Context Switching
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.
Breadcrumb Separation
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: