Skip to content

Commit 093b2fe

Browse files
committed
Realign docs sidebar with section tabs and explicit page order
- Add root:true to language/ and ai-tools/ meta.json so Fumadocs registers them as isolated sidebar sections (Helius-style tabs) - Rename ai-tools section title from "AI Tools" to "Agents" throughout (meta.json title, top navbar link in layout.shared.tsx) - Reorder content/docs/meta.json pages explicitly instead of relying on wildcard expansion - Wire DocsLayout tabs in $.tsx: Documentation → Language Reference → Agents → Community & Support, using getLayoutTabs() with manual ordering to guarantee correct tab sequence regardless of meta.json order
1 parent 8c78b53 commit 093b2fe

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

content/docs/ai-tools/meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"title": "AI Tools",
2+
"title": "Agents",
3+
"root": true,
34
"pages": [
45
"skills",
56
"mcp-server",

content/docs/language/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "Language Reference",
3+
"root": true,
34
"pages": [
45
"syntax",
56
"constants-and-variables",

content/docs/meta.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
22
"pages": [
3-
"...",
3+
"index",
44
"why",
5+
"ai-tools",
56
"solidity-to-cadence",
6-
"json-cadence-spec",
7+
"tutorial",
8+
"language",
79
"design-patterns",
810
"anti-patterns",
911
"project-development-tips",
12+
"security-best-practices",
13+
"json-cadence-spec",
14+
"contract-upgrades",
1015
"measuring-time",
1116
"testing-framework",
12-
"contract-upgrades",
13-
"security-best-practices",
14-
"ai-tools"
17+
"cadence-migration-guide"
1518
]
1619
}

src/lib/layout.shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function baseOptions(): BaseLayoutProps {
2424
external: true,
2525
},
2626
{ text: 'Language Reference', url: '/docs/language' },
27-
{ text: 'AI Tools', url: '/docs/ai-tools' },
27+
{ text: 'Agents', url: '/docs/ai-tools' },
2828
{
2929
type: 'icon',
3030
text: 'GitHub',

0 commit comments

Comments
 (0)