Commit Graph

9 Commits

Author SHA1 Message Date
AleFlyX
397b630f72 docs: add a deployment runbook and pre-commit checks (#3017)
* 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
2026-12-01 07:46:32 -05:00
AleFlyX
e4db64b0a2 style: make docs/scripts/check_docs.py lint-clean
`ruff check .` reports I001 and the formatter wants a reformat in the docs
check script added with the site rewrite. The Lint job does not watch docs/**,
so nothing surfaced it; this branch touches tests/**, which makes the job run.
2026-11-26 21:39:05 +08:00
AleFlyX
61e1be8d2f fix: two reference defects the contract tests surfaced
Both are in the rewritten HTTP reference and both are the kind of thing a
reader trusts because the page looks authoritative.

**A path that is not served.** The Partners Manager block lists
`GET /api/channels/schema/schema`; the router mounts `/api/partners/channels/schema`.
Anyone following that table got a 404.

**A heading for a router that serves nothing over HTTP.** `question:router` is
mounted at `/api/question` and owns no HTTP endpoints — its module's endpoints
live on `question_notebook:router`, and the socket half is on `/ws/questions`.
The generator emitted a section with an empty table anyway, so the page
advertised a prefix that answers nothing. Skip routers with no patterns and
regenerate; the heading disappears from both locales.
2026-11-26 21:39:05 +08:00
Gavin
947b374eb6 refactor: remove unused landing page components and social links 2026-11-26 15:11:14 +08:00
Gavin
bba2f9d7a3 ci: add automated github pages deployment for PR documentation previews 2026-11-26 15:11:14 +08:00
Gavin
9891b3855f docs: add GIFs update script and enhance documentation with new tutorials for visual learning 2026-11-26 15:11:14 +08:00
Gavin
c9e6133377 docs: enhance learning materials and workspace documentation with new tutorials and improved structure 2026-11-26 15:11:14 +08:00
Gavin
2524de09ac docs: update documentation links and add CI workflow for building and checking the docs site 2026-11-26 15:11:14 +08:00
Bingxi Zhao (Frank)
9194dbdd53 docs: add public Astro/Starlight documentation site 2026-11-23 23:57:39 -07:00