Skip to content

ci(docs): add mermaid render lint to prevent diagram syntax regressions - #240

Closed
yeongseon wants to merge 1 commit into
mainfrom
ci/mermaid-render-lint
Closed

ci(docs): add mermaid render lint to prevent diagram syntax regressions#240
yeongseon wants to merge 1 commit into
mainfrom
ci/mermaid-render-lint

Conversation

@yeongseon

Copy link
Copy Markdown
Owner

Summary

Adds a Mermaid Render Lint workflow that renders every ```mermaid block in README*.md and docs/ via @mermaid-js/mermaid-cli (mmdc), so invalid diagram syntax fails fast in CI. Follow-up from #209 (deferred to keep the chromium-based dependency isolated and reviewable).

  • Triggers only on PRs touching README*.md / docs/** (plus workflow_dispatch), keeping the browser dependency out of the main test matrix.
  • Uses a --no-sandbox Puppeteer config for headless Chromium on the runner.
  • Pins actions/checkout and actions/setup-node to the same SHAs already used elsewhere in the repo.

Verification

Ran the exact lint logic locally against this repo:

  • Positive: all 5 diagram-bearing files (docs/architecture.md, README.md, README.ko.md, README.ja.md, README.zh-CN.md) render OK, exit 0.
  • Negative: a deliberately malformed flowchart correctly fails with a non-zero exit.

Closes #214

Add a PR-triggered workflow that renders every ```mermaid block in
README*.md and docs/ with mermaid-cli (mmdc), failing fast when a
diagram has invalid syntax. Runs only on PRs that touch README*/docs,
keeping the chromium-based dependency isolated from the main test CI.

Closes #214
@yeongseon yeongseon closed this Jul 23, 2026
@yeongseon
yeongseon deleted the ci/mermaid-render-lint branch July 23, 2026 14:02
@yeongseon

Copy link
Copy Markdown
Owner Author

Closing as a duplicate of #233, which predates this PR and is more complete (dedicated scripts/render_mermaid.py, DESIGN.md coverage). #233 is the canonical fix for #214.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(docs): add mermaid render lint to prevent diagram syntax regressions

2 participants