Skip to content

fix: stop serving translated docs for removed OpenClaw features - #332

Draft
8000cabbage wants to merge 1 commit into
openclaw:mainfrom
8000cabbage:fix/retire-obsolete-localized-docs
Draft

8000cabbage wants to merge 1 commit into
openclaw:mainfrom
8000cabbage:fix/retire-obsolete-localized-docs

Conversation

@8000cabbage

@8000cabbage 8000cabbage commented Dec 2, 2026 •

Copy link
Copy Markdown

Closes openclaw/openclaw#210429

The two canonical redirects in openclaw/openclaw#210460 must land and sync to this publisher before this PR can merge.

What Problem This Solves

Readers of localized OpenClaw docs can still land on instructions for removed commands and features. For example, the Chinese openclaw tasks page still documents a command that users can no longer run, even though the English URL already redirects to the Automation guide.

User Impact

Existing localized bookmarks and Markdown URLs follow the same retirement rules as the English URLs. With the companion redirects synced, 373 of the old localized URLs point readers to published replacements and 60 URLs with no supported replacement are retired.

Why This Change Was Made

Run the publisher's existing selected-retirement pruner on the 25 absent English source paths whose x-i18n.source_path metadata matches their locale copies. This generates 433 deletions across 20 locales. The existing redirect rules own the old URLs, with two additional rules authored upstream to preserve links still used in published docs.

Evidence

  • Reproduced the live English redirect and stale Chinese /zh-CN/cli/tasks article. Compared base 09186bd7 and this change using the actual publisher builder, R2 preparer, and docs router. In German, French, Japanese, Korean, and Simplified Chinese, the old CLI tasks, CLI commitments, and Automation tasks URLs served stale HTML and Markdown before. They now redirect to the localized Automation guide and return its Markdown in the first response. The retired Fleet URL now returns 404 for both.
  • The full link audit initially found 41 missing targets. Simulated normal sync of the two canonical redirects from fix: keep links to the retired hosting and Webhooks guides working openclaw#210460, then rebuilt the 15,153-page shell, prepared the R2 manifest, and passed the publisher smoke check. Verified all 433 affected localized paths in that manifest. The 373 redirects had published Markdown targets and the other 60 paths had neither stale HTML nor Markdown.
  • All 56 focused Markdown redirect and docs router tests passed. Full npm test passed 302 of 312 on Windows. The same 10 failures reproduced on the unchanged base in the head-drift, OG-cache, and preview tests. git diff --check passed, and the PR file list matched the generated inventory.
  • This evidence uses local publishing artifacts. Deployment awaits upstream sync and merge.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs Bug]: Localized pages for removed features are still published (e.g. /zh-CN/cli/tasks) while the English routes redirect or 404

1 participant