惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
Recent Announcements
Recent Announcements
B
Blog
D
Docker
V
V2EX
GbyAI
GbyAI
L
LangChain Blog
博客园 - Franky
U
Unit 42
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
博客园_首页
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
量子位
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
ci: validate docs mdx before publish · openclaw/openclaw@...
steipete · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -28,4 +28,6 @@ Required workflow:

2828

4. Run `pnpm check:docs` if dependencies are available.

2929

5. Leave the worktree clean if no docs need changes.

3030
31+

If `pnpm docs:check-mdx` or `pnpm check:docs` reports MDX parse errors, fix only the syntax needed for the listed existing docs files. Preserve prose meaning, frontmatter, code fences, and links; do not broadly rewrite translated or source content while repairing parser failures.

32+
3133

When uncertain, prefer no edit and explain the uncertainty in the final message.

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,25 @@

1+

# OpenClaw Docs MDX Repair Agent

2+
3+

You are repairing generated OpenClaw documentation after a fast MDX validation failure.

4+
5+

Goal: fix only the MDX syntax errors reported by the checker.

6+
7+

Hard limits:

8+
9+

- Edit only existing Markdown/MDX files under the locale path named by `LOCALE`.

10+

- Do not edit source English docs unless `LOCALE=en`.

11+

- Do not edit code, workflows, package metadata, generated sync metadata, translation memory, or assets.

12+

- Do not add, delete, or rename files.

13+

- Preserve the meaning of translated prose.

14+

- Preserve frontmatter, `x-i18n.source_hash`, links, code fences, JSX component names, and existing page structure.

15+

- Avoid broad formatting or retranslation.

16+
17+

Required workflow:

18+
19+

1. Read `.openclaw-sync/mdx/${LOCALE}.json` when it exists.

20+

2. Inspect only the listed files and nearby lines.

21+

3. Fix the minimal syntax issue, such as broken JSX attribute quoting, mismatched component closing tags, raw `<` text, raw HTML comments, or accidental top-level `import`/`export` text.

22+

4. Run `node source/scripts/check-docs-mdx.mjs "docs/${LOCALE}" --json-out ".openclaw-sync/mdx/${LOCALE}.json"`.

23+

5. Leave no changes outside `docs/${LOCALE}`.

24+
25+

When uncertain, prefer the smallest escaping fix: backticks for literal words, `&lt;` for literal `<`, double quotes around JSX attribute values, and balanced component tags.

Original file line numberDiff line numberDiff line change

@@ -43,6 +43,12 @@ jobs:

4343

--source-repo "$GITHUB_REPOSITORY" \

4444

--source-sha "$GITHUB_SHA"

4545
46+

- name: Install docs MDX checker dependency

47+

run: npm install --no-save --package-lock=false @mdx-js/mdx@3.1.1

48+
49+

- name: Check publish docs MDX

50+

run: node "$GITHUB_WORKSPACE/publish/.openclaw-sync/check-docs-mdx.mjs" "$GITHUB_WORKSPACE/publish/docs"

51+
4652

- name: Commit publish repo sync

4753

working-directory: publish

4854

run: |

Original file line numberDiff line numberDiff line change

@@ -1263,7 +1263,7 @@

12631263

"check:base-config-schema": "node --import tsx scripts/generate-base-config-schema.ts --check",

12641264

"check:bundled-channel-config-metadata": "node --import tsx scripts/generate-bundled-channel-config-metadata.ts --check",

12651265

"check:changed": "node scripts/check-changed.mjs",

1266-

"check:docs": "pnpm format:docs:check && pnpm lint:docs && pnpm docs:check-i18n-glossary && pnpm docs:check-links",

1266+

"check:docs": "pnpm format:docs:check && pnpm lint:docs && pnpm docs:check-mdx && pnpm docs:check-i18n-glossary && pnpm docs:check-links",

12671267

"check:host-env-policy:swift": "node scripts/generate-host-env-security-policy-swift.mjs --check",

12681268

"check:import-cycles": "node --import tsx scripts/check-import-cycles.ts",

12691269

"check:loc": "node --import tsx scripts/check-ts-max-loc.ts --max 500",

@@ -1298,6 +1298,7 @@

12981298

"docs:check-i18n-glossary": "node scripts/check-docs-i18n-glossary.mjs",

12991299

"docs:check-links": "node scripts/docs-link-audit.mjs",

13001300

"docs:check-links:anchors": "node scripts/docs-link-audit.mjs --anchors",

1301+

"docs:check-mdx": "node scripts/check-docs-mdx.mjs docs README.md",

13011302

"docs:dev": "cd docs && mint dev",

13021303

"docs:list": "node scripts/docs-list.js",

13031304

"docs:spellcheck": "bash scripts/docs-spellcheck.sh",

@@ -1589,6 +1590,7 @@

15891590

"@grammyjs/types": "^3.26.0",

15901591

"@lit-labs/signals": "^0.2.0",

15911592

"@lit/context": "^1.1.6",

1593+

"@mdx-js/mdx": "^3.1.1",

15921594

"@types/express": "^5.0.6",

15931595

"@types/markdown-it": "^14.1.2",

15941596

"@types/node": "25.6.0",