[BREAKGLASS] OpenClaw docs + translation https://docs.openclaw.ai
Go to file
2026-05-06 03:51:08 +01:00
.github/workflows feat: publish source search index 2026-05-06 03:51:08 +01:00
.openclaw-sync chore(sync): mirror docs from openclaw/openclaw@4395f1dd66 2026-05-06 02:50:04 +00:00
docs chore(sync): mirror docs from openclaw/openclaw@4395f1dd66 2026-05-06 02:50:04 +00:00
scripts/docs-site feat: publish source search index 2026-05-06 03:51:08 +01:00
.gitignore feat: add GitHub Pages docs site 2026-05-05 23:49:31 +01:00
AGENTS.md docs: add publish repo editing rules 2026-04-23 19:11:50 +01:00
CLAUDE.md docs: add publish repo editing rules 2026-04-23 19:11:50 +01:00
LICENSE Initial commit 2026-04-05 09:03:25 +01:00
package-lock.json feat: add GitHub Pages docs site 2026-05-05 23:49:31 +01:00
package.json feat: publish source search index 2026-05-06 03:51:08 +01:00
README.md feat: add GitHub Pages docs site 2026-05-05 23:49:31 +01:00

openclaw-docs

Mirror repo for the published OpenClaw docs site.

Source of truth lives in openclaw/openclaw, under docs/.

How it works

  1. English docs are authored in openclaw/openclaw.
  2. openclaw/openclaw/.github/workflows/docs-sync-publish.yml mirrors the docs tree into this repo.
  3. This repo stores the published docs tree plus generated locale output.
  4. openclaw/docs/.github/workflows/translate-*.yml runs on push, schedule, release dispatch, and manual dispatch to refresh locale docs.
  5. .github/workflows/pages.yml builds dist/docs-site from the mirrored docs and deploys it to GitHub Pages.

Translation behavior

  • Locale pages under docs/<locale>/** 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.

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.
  • Locale pages under docs/<locale>/** are generated output.
  • .openclaw-sync/source.json records which openclaw/openclaw commit this mirror was synced from.

GitHub Pages build

  • npm run docs:build renders the mirrored Mintlify-flavored docs into dist/docs-site.
  • npm run docs:smoke checks representative English and locale pages plus the Pagefind search bundle.
  • npm run docs:check runs both steps.
  • The generated site includes the language picker and static full-text search via Pagefind.

Secrets

  • OPENCLAW_DOCS_SYNC_TOKEN lives in openclaw/openclaw and lets the source repo push into this repo.
  • OPENCLAW_DOCS_I18N_OPENAI_API_KEY lives in this repo and powers locale translation refreshes.