Repository navigation
Fix docs sidebar: Developer and Trader sections cannot expand - #29
Merged
Merged
Conversation
The Developer and Trader sections in the docs sidebar could not expand because their directories lacked meta.json files, causing buildTreeLevel to return empty children. Added localized meta.json files for both folders (all six locales) mirroring the email-to-call pattern, so their child pages populate and the sections expand correctly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vwtct6Ei5SfJN9JLzkEaYg
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
echobell-one | 30a5a17 | Commit Preview URL Branch Preview URL |
Jul 22 2026, 10:13 AM |
noobnooc
marked this pull request as ready for review
July 22, 2026 10:28
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the docs sidebar, the Developer (开发者) and Trader (交易者) sections show a chevron but cannot be expanded, while Email to Call (邮件转电话) works correctly. The pages inside those folders are otherwise reachable and render fine.
Root cause
The navigation tree is built by
buildTreeLevelinsrc/lib/server/content.ts, which populates a folder's children from ameta.jsonfile inside that folder:The
developer/andtrader/directories had nometa.jsonfiles (onlyemail-to-call/did), sobuildTreeLevelreturned an empty children array. The folders rendered as<details>with no child links, so expanding them revealed nothing.Fix
Added localized
meta.jsonfiles for both folders across all six locales (.json,.de,.es,.fr,.ja,.zh), mirroring the existingemail-to-call/pattern:content/docs/developer/meta*.json— listsindex,github,grafana,prometheus,home-assistant,app-store-connect,upptime,uptime-kuma,uptimerobotcontent/docs/trader/meta*.json— listsindex,tradingview,aicoin,cryptocurrency-alertingFolder titles use each locale's
sidebarTitle(e.g. 开发者 / 交易者 for zh). No code changes were needed.Testing
🤖 Generated with Claude Code
https://claude.ai/code/session_01Vwtct6Ei5SfJN9JLzkEaYg
Generated by Claude Code