Repository navigation
fix(docs): preserve localized navigation route parity - #114993
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 2:30 AM ET / 06:30 UTC. ClawSweeper reviewWhat this changesThe PR updates documentation publish synchronization so every generated locale inherits the current English navigation routes while retaining translated tab and group labels. Merge readinessKeep this active PR open for its normal maintainer review. It is a focused repair for localized documentation navigation, and the protected Priority: P2 Review scores
Verification
How this fits togetherThe documentation publish script composes Mintlify navigation from the canonical English route tree and per-locale metadata. Its output feeds the published localized documentation sites, where navigation must lead users to the same current pages as English. flowchart LR
A[English documentation navigation] --> C[Publish synchronization]
B[Locale label metadata] --> C
C --> D[Clone and prefix locale routes]
D --> E[Overlay localized tab and group labels]
E --> F[Published localized navigation]
F --> G[Localized documentation readers]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +63, Docs 0, Other +94. Total +157 across 4 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep English navigation as the sole route authority, overlay only locale labels, and land the rebased PR after verifying route parity and translated labels against the current canonical navigation. Do we have a high-confidence way to reproduce the issue? Unclear whether a failing published-site reproduction was independently observed during this review; the supplied PR evidence and focused regression test provide a source-level reproduction path for stale or incomplete locale route trees. Is this the best way to solve the issue? Yes, provisionally: deriving locale routes from the canonical English tree and treating locale navigation as a label overlay avoids duplicate route inventories and the associated drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 28ecf953f382. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper rank-up move disposition: I am not rewriting the branch solely because GitHub reports BEHIND. The exact PR head completed the full hosted CI run successfully against the current merge candidate, and the repo-native prepare/merge flow will re-check mainline drift before landing. Per the requested landing policy, this will use a merge commit rather than squash or rebase. |
|
Merged via rebase.
|
What Problem This Solves
Fixes an issue where Simplified Chinese docs navigation omitted hundreds of current pages, while generated locale navigation could retain stale page lists or English labels.
Why This Change Was Made
Publish sync now always clones the current canonical English navigation routes, prefixes them for each generated locale, and overlays translated tab and group labels by matching shared page anchors. Locale metadata can translate labels without owning or replacing the route tree.
User Impact
Localized docs keep complete navigation coverage as English docs evolve. Simplified Chinese no longer loses current pages, and locales with starter navigation metadata retain translated labels without hand-maintaining duplicate route lists.
Evidence
node scripts/run-vitest.mjs test/scripts/docs-sync-publish.test.ts: 4 tests passed.zh-Hans,de,ja, andeseach contain all 551 canonical non-ClawHub pages.快速开始,Loslegen,はじめに, andComenzar.node scripts/docs-list.js: passed.git diff --check: passed.