You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
test(docs): harden the 11-language README checker — scripts/check-readme-equality.mjs now resolves every TOC anchor against the real headings, requires the TOC order to match the document's H2 order, and requires every H2 to be listed; heading/TOC parsing is one shared, fence-aware, CRLF-tolerant source (collectHeadings / collectTocItems), and the slug model matches github-slugger (no trim, so a heading ending in " ?" keeps its trailing hyphen). The old checker only counted TOC items, so the two real drifts below passed silently —— 11 语 README 校验器加严:scripts/check-readme-equality.mjs 现会校验每个 TOC 锚点都能解析到真实标题、TOC 顺序必须与正文 H2 顺序一致、且每个 H2 必须列入 TOC;标题/TOC 解析合并为唯一事实源(围栏感知、容忍 CRLF),slug 规则对齐 github-slugger(不 trim,标题尾部“空格+标点”保留尾部连字符)。旧校验只数 TOC 条数,下面两处真实漂移因此长期漏检。
fix(docs): repair four misleading client links in all 11 READMEs — Pi pointed at a 404 (github.com/mariozechner/pi → pi.dev), ZCode's domain now redirects to an unrelated promo page (zcode.ai → zcode.z.ai, the official site), Antigravity pointed at a GitHub organization page (github.com/google-deepmind → antigravity.google), and OpenCode at its legacy repository (github.com/opencode-ai/opencode → opencode.ai) —— 修正 11 语 README 的四个误导外链:Pi 原本指向 404(github.com/mariozechner/pi → pi.dev);ZCode 原域名已跳转到无关推广页(zcode.ai → 官方站 zcode.z.ai);Antigravity 原本指向 GitHub 组织主页(github.com/google-deepmind → antigravity.google);OpenCode 原本指向旧仓库(github.com/opencode-ai/opencode → opencode.ai)。
fix(docs): repair the French TOC anchor and reorder every TOC to document order — #voyez-le-à-loeuvre--une-démo-live-de-30-secondes never resolved (a ligature was missing from the slug), and all 11 TOCs still listed the demo section third although 0.1.2 moved that section to the first screen. Three duplicated paragraphs are dropped at the same time: the wire recap in the hook-mechanism section, the FAQ config-error example that repeats the configuration reference, and the FAQ coffee line that repeats the Support section —— 修复法语 TOC 锚点并让 11 语目录顺序与正文一致:#voyez-le-à-loeuvre--… 因漏字符从未解析成功;11 语目录也都仍把演示段排在第三位,而 0.1.2 已把它移到首屏。同时删除三处重复段落:钩子机制段的 wire 复述、FAQ 里与配置参考重复的配置错误示例、以及 FAQ 里与 Support 段重复的咖啡句。