m31-labs/Sirena Bake
Render Mermaid and Sirena diagram fences in Markdown files to committed SVGs. Rewrites each fence to a source-preserving block (inline SVG reference + collapsed source details). Does NOT commit — leave that to the consumer workflow for flexibility.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| paths | Space- or newline-separated globs of Markdown files to bake. Example: "docs/**/*.md README.md" | yes | — |
| theme | Sirena theme name. Defaults to "earth-default" (the built-in earth-tone palette). | no | earth-default |
| infer | When "true", promote Mermaid shapes and labels to typed Sirena kinds. | no | false |
| check | When "true", run in verify mode: render every diagram but write nothing, and fail (exit 1) if any committed SVG or Markdown is stale. Use this in CI to ensure baked diagrams are kept up to date — the job fails until the author re-runs the action in write mode and commits the result. | no | false |
| working-directory | Directory to run sirena bake from. Defaults to the repo root. | no | . |
Outputs
no outputs