Repository navigation
fix: stop serving translated docs for removed OpenClaw features - #332
Draft
8000cabbage wants to merge 1 commit into
Draft
8000cabbage wants to merge 1 commit into
8000cabbage wants to merge 1 commit into
Conversation
8000cabbage
marked this pull request as draft
December 2, 2026 04:31
This branch has not been deployed
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.
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 taskspage 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_pathmetadata 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
/zh-CN/cli/tasksarticle. Compared base09186bd7and 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.npm testpassed 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 --checkpassed, and the PR file list matched the generated inventory.