mirror of
https://github.com/nyakang/nyaterm.git
synced 2026-09-22 00:01:30 +00:00
The docs site was not in any CI path filter, so nothing built it and nothing compared the two locales. That is how the English pages drifted several sections behind Chinese and how seven internal screenshot-planning notes stayed published. - Add scripts/ci/check_docs_translations.py, covering what a Docusaurus build does not: a page existing in only one locale, a heading-count mismatch between the two copies, a page no sidebar references, and authoring leftovers (screenshot-planning notes, /img/docs/ paths, scripts/demo-*.sh references, stray TODO markers). Verified it fails on each of those by reintroducing them. - Add a Documentation site job that runs the script and then builds every locale, and add docs-site/** to the workflow path filters. - Fix docs-site/pnpm-workspace.yaml, whose allowBuilds entries still held the placeholder text "set this to true or false". That made every `pnpm install` in the site fail with ERR_PNPM_IGNORED_BUILDS, which means the `pnpm --dir docs-site build` command our own contributing guide tells people to run did not work. Deny the four build scripts explicitly; none is needed to build the site. - Correct the homepage, which still advertised only SSH, local shell, Telnet, and serial: the workspace card, the docs card, and the page description now name RDP, VNC, and the AI assistant. The three retargeted translate() keys are updated in i18n/en/code.json so English does not fall back to Chinese. - Document the new script in the setup and contributing guides, replacing the note that said no translation-completeness check exists. Verified with `python3 scripts/ci/check_docs_translations.py`, `pnpm --dir docs-site install --frozen-lockfile`, and `pnpm --dir docs-site build`, and by confirming the new homepage strings render in both locales. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>