Skip to content

Commit f8bfcd6

Browse files
os-zhuangclaude
andauthored
docs: tabbed sidebar nav + de-emphasize objectql/ui/os protocol branding (#1917)
Splits the single long docs sidebar into six icon-labelled tabs via fumadocs folder roots (Getting Started, Concepts, Guides, Reference, Protocol, Releases), so readers see one section at a time instead of all 366 pages competing in one rail. - root + icon on each top-level section meta.json; root meta.json reordered so Protocol (the early-emphasis ObjectQL/ObjectUI/ObjectOS layer) sits last and the generated Reference gets its own tab instead of crowding the hand-written docs. - references/meta.json is generated, so the Reference tab's title/icon/root is emitted from packages/spec/scripts/build-docs.ts (title "Protocol Reference" → "Reference"). - Guides regrouped: added a "Foundations" label, moved Service Contracts into Integration, surfaced Cheatsheets under their own label instead of buried after a bare divider. - Renamed colliding "Protocol" labels: "Protocol Overview" → "Protocol", "Contracts Protocol" → "Service Contracts". - Fixed the top-nav GitHub link target: objectstack-ai/spec → framework. Nav-only: no files moved, no doc URLs changed. `next build` compiles all 1113 pages clean; lucide icons resolve with no warnings. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 266c0f8 commit f8bfcd6

11 files changed

Lines changed: 30 additions & 12 deletions

File tree

.changeset/docs-nav-restructure.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
---
3+
4+
docs: restructure the docs site left navigation — split the single long sidebar into six icon-labelled tabs (Getting Started, Concepts, Guides, Reference, Protocol, Releases), de-emphasise the ObjectQL/ObjectUI/ObjectOS protocol branding (Protocol moved to the last tab), isolate the 238 generated reference pages into their own tab, group the Guides section (Foundations/Building/Integration/Operations/Cheatsheets), and fix the top-nav GitHub link (objectstack-ai/spec → framework). Nav-only; no doc URLs change.

apps/docs/lib/layout.shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Image from 'next/image';
33

44
export const gitConfig = {
55
user: 'objectstack-ai',
6-
repo: 'spec',
6+
repo: 'framework',
77
branch: 'main',
88
};
99

content/docs/concepts/meta.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"title": "Concepts",
3+
"icon": "Lightbulb",
4+
"root": true,
35
"pages": ["index", "north-star", "metadata-driven", "metadata-lifecycle", "design-principles", "architecture", "cluster-semantics", "webhook-delivery", "skills", "core", "packages", "setup-app", "cloud-artifact-api", "terminology", "implementation-status"]
46
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"title": "Getting Started",
3+
"icon": "Rocket",
4+
"root": true,
35
"pages": ["index", "quick-start", "core-concepts", "architecture", "examples", "cli", "glossary"]
46
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"title": "Contracts Protocol",
2+
"title": "Service Contracts",
33
"pages": ["index", "metadata-service", "auth-service", "storage-service", "data-engine", "cache-service"]
4-
}
4+
}

content/docs/guides/meta.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"title": "Guides",
3+
"icon": "BookOpen",
4+
"root": true,
35
"pages": [
46
"index",
7+
"---Foundations---",
58
"packages",
69
"metadata",
710
"adding-a-metadata-type",
@@ -26,6 +29,7 @@
2629
"---Integration---",
2730
"api-reference",
2831
"client-sdk",
32+
"contracts",
2933
"project-scoping",
3034
"driver-configuration",
3135
"kernel-services",
@@ -43,8 +47,7 @@
4347
"error-handling-server",
4448
"standards",
4549
"troubleshooting",
46-
"---",
47-
"contracts",
50+
"---Cheatsheets---",
4851
"cheatsheets"
4952
]
5053
}

content/docs/meta.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
"getting-started",
55
"concepts",
66
"guides",
7-
"---",
8-
"protocol",
9-
"---",
107
"references",
11-
"---",
8+
"protocol",
129
"releases"
1310
]
1411
}

content/docs/protocol/meta.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"title": "Protocol Overview",
2+
"title": "Protocol",
3+
"icon": "Network",
4+
"root": true,
35
"pages": ["index", "objectql", "objectui", "objectos", "knowledge"]
46
}

content/docs/references/meta.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"title": "Protocol Reference",
2+
"title": "Reference",
3+
"icon": "FileCode",
4+
"root": true,
35
"pages": [
46
"ai",
57
"api",

content/docs/releases/meta.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"title": "Releases",
3+
"icon": "Tag",
4+
"root": true,
35
"pages": ["index", "v9"]
46
}

0 commit comments

Comments
 (0)