From d0939e8ad688c75ff7e9a7f3fb536e2a9d39bdc7 Mon Sep 17 00:00:00 2001 From: technical-writer Date: Tue, 2 Jun 2026 10:02:04 -0700 Subject: [PATCH] =?UTF-8?q?docs:=20fix=20Self-Hosting=20nav=20=E2=80=94=20?= =?UTF-8?q?empty=20collapsible=20folder=20=E2=86=92=20linked=20folder+inde?= =?UTF-8?q?x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug (reported): clicking 'Self hosting' in the sidebar only toggled an empty dropdown and never navigated. Cause: content/docs/self-hosting.mdx (the page) and content/docs/self-hosting/ (a folder with admin-token.mdx) coexisted under the same name. fumadocs turned the directory into a collapsible folder with no index, so the page was unreachable from the folder header and the explicit 'self-hosting/admin-token' root-meta entry pulled the only child out to top level — leaving the folder empty. Fix (canonical fumadocs folder-with-index, same pattern as changelog/api-reference): - self-hosting.mdx → self-hosting/index.mdx (folder header now links to /docs/self-hosting). - self-hosting/meta.json: {title, pages:[index, admin-token]}. - root meta.json: collapse 'self-hosting' + 'self-hosting/admin-token' into the single 'self-hosting' folder entry. URLs unchanged (/docs/self-hosting and /docs/self-hosting/admin-token both still resolve) — no broken inbound links. Verified in built HTML: folder header href=/docs/self-hosting, admin-token nested. Build green. Co-Authored-By: Claude Opus 4.8 (1M context) --- content/docs/meta.json | 3 +-- content/docs/{self-hosting.mdx => self-hosting/index.mdx} | 0 content/docs/self-hosting/meta.json | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) rename content/docs/{self-hosting.mdx => self-hosting/index.mdx} (100%) create mode 100644 content/docs/self-hosting/meta.json diff --git a/content/docs/meta.json b/content/docs/meta.json index 8fbe4e4..8e00e20 100644 --- a/content/docs/meta.json +++ b/content/docs/meta.json @@ -18,7 +18,6 @@ "platform-management-api", "mcp-server", "self-hosting", - "self-hosting/admin-token", "observability", "troubleshooting", "---Security---", @@ -31,4 +30,4 @@ "---Integrations---", "opencode" ] -} \ No newline at end of file +} diff --git a/content/docs/self-hosting.mdx b/content/docs/self-hosting/index.mdx similarity index 100% rename from content/docs/self-hosting.mdx rename to content/docs/self-hosting/index.mdx diff --git a/content/docs/self-hosting/meta.json b/content/docs/self-hosting/meta.json new file mode 100644 index 0000000..1ab27d4 --- /dev/null +++ b/content/docs/self-hosting/meta.json @@ -0,0 +1,4 @@ +{ + "title": "Self-Hosting", + "pages": ["index", "admin-token"] +} -- 2.52.0