1.6 KiB
1.6 KiB
openclaw-docs
Mirror repo for the published OpenClaw docs site.
Source of truth lives in openclaw/openclaw, under docs/.
How it works
- English docs are authored in
openclaw/openclaw. openclaw/openclaw/.github/workflows/docs-sync-publish.ymlmirrors the docs tree into this repo.- This repo stores the published docs tree plus generated zh-CN output.
openclaw/docs/.github/workflows/translate-zh-cn.ymlruns once a day, on manual dispatch, and after release dispatches fromopenclaw/openclawto refreshdocs/zh-CN/**.
Translation behavior
- zh-CN pages are generated output.
- Each translated page stores
x-i18n.source_hash. - The translate workflow computes a pending file list before calling the model.
- If no English source hashes changed, the workflow skips the expensive translation step entirely.
- If files changed, only the pending files are translated.
- The workflow retries transient model-format failures.
- Published releases in
openclaw/openclawdispatch an extra zh-CN refresh so release-adjacent docs updates do not wait for the daily cron.
Editing rules
- Do not treat this repo as the primary place for English doc edits.
- Make English doc changes in
openclaw/openclaw, then let sync copy them here. - zh-CN pages in
docs/zh-CN/**are generated output. .openclaw-sync/source.jsonrecords whichopenclaw/openclawcommit this mirror was synced from.
Secrets
OPENCLAW_DOCS_SYNC_TOKENlives inopenclaw/openclawand lets the source repo push into this repo.OPENCLAW_DOCS_I18N_OPENAI_API_KEYlives in this repo and powers zh-CN translation refreshes.