* docs: document deployment and add maintenance checks
Add Cloudflare build, deployment, and rollback steps, check locale pairs and Markdown before commits, and report unused public asset candidates. Refs #2942.
* docs: add a Wrangler configuration example
部署手册说明如何从现有 Worker 补齐样板,并核对域名、路由和绑定。
验证:TOML 解析、文档源检查、6 项文档测试和变更文件的 pre-commit 检查通过。
* ci: check the live docs surface on public docs PRs
按路径筛选目标为 feat/public-docs 的 PR,程序或快照变更时校验真实 CLI/API,纯文案跳过运行时依赖。
验证:实测 CLI 与文案分流、命令改名时旧快照失败、重新导出后通过。6 项文档测试和变更文件的 pre-commit 检查通过。
* ci: add a local docs preflight and reuse the surface filters
新增本地检查入口和中文流程说明。允许主动刷新命令清单或构建站点,本地和 CI 共用路径规则,构建后单独校验产物链接。
验证:模拟 CLI 改名和纯文案改动,验证旧示例失败、修复后 6 项测试通过。正常构建通过,坏链接返回 1 并报告具体路径。变更文件的 pre-commit 检查通过。
* docs: keep the preflight instructions in the existing README
* docs: explain how to trigger the first fork preview
The previous commit said the Docs workflow runs on changes to the surface
exporter, and the paths list didn't include it. So an edit to
scripts/export_docs_surface.py alone would have started no workflow at all:
tests.yml doesn't watch scripts/**, and nothing else does either.
Add the path to both the push and pull_request triggers so the claim holds.
Nothing ran `pytest docs/tests`. tests.yml does not watch docs/**, and its
python-tests job passes `tests` explicitly, so a pull request that only edits
documentation ran no checks at all and these tests would have rotted exactly
like the ones they replace.
Add a Docs workflow that runs them on any change under docs/, on the surface
exporter, and on the two test files that consume the artifact. It installs
nothing but pytest, which is what the committed artifact buys.
docs/README.md now describes the split: the Starlight build validates links and
stays manual on a docs edit, while the contract tests run in CI and also cover
locale parity, so the manual parity snippet goes away.
VitePress GitHub Pages deploy is not in use; remove the workflow added
alongside the pypi-release fix.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The .github entry in .gitignore silently excluded pypi-release.yml and
docs.yml from version control, so the PyPI publish workflow never reached
the default branch and didn't fire for release events.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>