Repository navigation
docs: rename TuyaOpenClaw to TClaw - #258
Merged
Merged
Conversation
Rename the Agent product from TuyaOpenClaw to TClaw across docs, page
content, navigation data, sidebars, i18n translation keys and links.
Also move the legacy DuckyClaw-era slugs onto the new brand, since the
routes were still published under the old name:
- docs/duckyclaw/ -> docs/tclaw/ (and the zh i18n mirror)
- src/pages/duckyclaw.{js,module.css} -> src/pages/tclaw.{js,module.css}
- duckyclawSidebar -> tclawSidebar, .duckyclawTheme -> .tclawTheme
- /duckyclaw and /docs/duckyclaw/* routes -> /tclaw, /docs/tclaw/*
Old URLs keep working: added ['/docs/tclaw/', '/docs/duckyclaw/'] and
['/tclaw', '/duckyclaw'] to the client-redirects `moves` map, which
generates redirect pages for both locales.
DuckyClaw / Ducky mascot wording, the DUCKYCLAW_DEVICE_ID code sample,
the duckyclaw-001 device id, the duckyclaw-smart-car tutorial id and
the DuckyClaw-*.md filenames are intentionally left untouched. The old
`duckyclaw` SEO keyword is kept alongside the new `tclaw` one.
Verified with `pnpm build` (en + zh, exit 0) and by confirming the
generated /docs/duckyclaw/* redirect pages point at /docs/tclaw/*.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Follow-up from a review pass over the rename commit:
- static/llms.txt, .cursor/skills/tuyaopen-doc-planner/{SKILL.md,
directory-map.md}: these three lines were left half-renamed — the
path/URL moved to tclaw but the entity label still said DuckyClaw,
so each line contradicted itself. Labels now say TClaw.
- i18n/zh/.../projects/duckyclaw.md: revert this file's rename. It has
no English source doc, so nothing picks the translation up, and its
content is about VerdureLab rather than TClaw — renaming it to
tclaw.md mislabeled an unrelated dead file.
No functional change. Verified by diffing the generated site against a
build of the pre-rename commit: of 788 pages present in both, all 788
are byte-identical once the rename and Docusaurus' content hashes are
normalized. The 16 old /duckyclaw pages are replaced by 16 /tclaw pages
plus 16 redirect stubs, so no URL is lost. `pnpm build` passes (en+zh).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Renames the Agent product from TuyaOpenClaw to TClaw across docs, page
content, navigation data, sidebars, i18n translation keys and links.
Companion to tuya/TClaw#48.
Also moves the legacy slug layer
The routes were still published under the even older
duckyclawbrand, sothis moves them onto the new name in the same pass:
docs/duckyclaw/→docs/tclaw/(and the zh i18n mirror)src/pages/duckyclaw.{js,module.css}→src/pages/tclaw.{js,module.css}duckyclawSidebar→tclawSidebar; CSS module.duckyclawTheme→.tclawTheme/duckyclaw→/tclaw,/docs/duckyclaw/*→/docs/tclaw/*i18n keys are derived from the sidebar id and from label text, so
sidebar.duckyclawSidebar.*(current.json) andlink.item.label.TuyaOpenClaw 🦞(footer.json/navbar.json) moved withthem — otherwise the whole subtree would have silently reverted to English.
No URL is lost
Added to the existing
createRedirectsmovesmap indocusaurus.config.js:The build emits all 16 redirect stubs —
/duckyclaw,/zh/duckyclaw, and7 + 7
/docs/duckyclaw/Xfor both locales — each with acanonicalpointingat its
/docs/tclaw/Xreplacement.Verification
Diffed the generated site against a full build of the pre-rename commit:
/duckyclawset)/tclawpages + 16/duckyclawredirect stubsSo nothing outside the renamed section changed, and every old URL still
resolves.
pnpm buildpasses for both locales.Also verified statically (the site sets
onBrokenLinks: 'warn', so the buildalone does not gate this): every doc id in
tclawSidebarresolves in bothlocales,
sidebarIdmatches the export, zero orphaned i18n keys introduced,zero broken links among the renamed docs, and all 88
styles.*referenced intclaw.jsexist intclaw.module.css.Deliberately left alone
CamelCase
DuckyClaw/Duckybrand wording, theDuckyClaw-*.mdandducky-quick-start-*.mdfilenames,DUCKYCLAW_DEVICE_ID/"duckyclaw-001"in code samples,
github.com/tuya/DuckyClawlinks, and theduckyclaw-smart-cartutorial id. The oldduckyclawSEO keyword is keptalongside the new
tclawone.Note
i18n/zh/.../projects/duckyclaw.mdis intentionally not renamed — ithas no English source doc so nothing consumes the translation, and its content
is about VerdureLab rather than TClaw.
One pre-existing bug left for a separate PR
.cursor/skills/tuyaopen-docs-author/SKILL.mdsays the repo exports "foursidebars" and its copy-paste i18n audit snippet uses a 4-element
Set. Therepo actually exports five, so that command silently skips
tyutoolSidebar—which is exactly where the only two untranslated sidebar labels live. Out of
scope here.
🤖 Generated with Claude Code