Skip to content

53 integate mermaidjs rendering with pozeiden#54

Merged
sc2ben merged 6 commits intomainfrom
53-integate-mermaidjs-rendering-with-pozeiden
Apr 20, 2026
Merged

53 integate mermaidjs rendering with pozeiden#54
sc2ben merged 6 commits intomainfrom
53-integate-mermaidjs-rendering-with-pozeiden

Conversation

@sc2ben
Copy link
Copy Markdown
Contributor

@sc2ben sc2ben commented Apr 19, 2026

Summary

  • Add Mermaid.js rendering to HTML and Typst via pozeiden (lazy dep; falls back to plain code block on error or when unavailable); add src/noop_mermaid.zig stub for builds without pozeiden
  • Add nix build .#site combining the WASM playground and API docs for zigmark.sc2.in; add Docs/GitHub nav links to the playground header; trim sources.tar 35 MB → ~500 KB by repacking with only project sources
  • Fix update-zon: drop zig fetch --save . which caused a self-referential hash loop; apply env -u ZIG_GLOBAL_CACHE_DIR consistently to all zig2nix zon2lock calls
  • Add .github/workflows/deploy-docs.yml to build and deploy the site to Cloudflare Pages on push to main

Test plan

  • zig build test passes (unit tests + CommonMark + GFM spec)
  • Mermaid stub tests pass for HTML and Typst (error and null-renderer fallback cases)
  • update-zon no longer corrupts build.zig.zon with a self-dep
  • nix build succeeds with updated lock file
  • nix build .#site succeeds; result/docs/sources.tar under 25 MB
  • Playground loads; Docs and GitHub links visible in header
  • /docs renders without panic
  • mermaid diagrams render on playground

@sc2ben sc2ben linked an issue Apr 19, 2026 that may be closed by this pull request
@sc2ben sc2ben added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 20, 2026
@sc2ben sc2ben merged commit 1786e3a into main Apr 20, 2026
2 checks passed
@sc2ben sc2ben deleted the 53-integate-mermaidjs-rendering-with-pozeiden branch April 20, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integate mermaidjs rendering with pozeiden

2 participants