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.
Added
The docs site draws diagrams in the browser with sirene-core built for WebAssembly: an edit button on each sample redraws it as its source changes, and a playground page draws
Mermaid, PlantUML, or DOT as you type, keeping the source in the page's link.
sirene-wasm (wasm/, not on crates.io) exports rendering to JavaScript over the module's
memory, with no imports; docs/assets/sirene-wasm.js loads it. It replaces wasm-smoke:
CI renders each file in examples/ with it under Node through that loader.
Each release attaches sirene-wasm-X.Y.Z.tar.gz (sirene.wasm and sirene-wasm.js) for
drawing diagrams in web pages. The loader's renderAll replaces a page's mermaid, plantuml, and dot code blocks, and mermaid.js's .mermaid blocks, with their drawings; examples/web/index.html is a complete page.
The same files are published to npm as @jaemk/sirene, through trusted publishing with
provenance, so pages can load them from jsDelivr or unpkg. require("@jaemk/sirene") returns
the loader.
Guide pages for the Rust library and for web pages.