Mermaid diagrams
A fenced code block whose language is mermaid becomes a diagram:
sequenceDiagram
You->>webolator: docs/
webolator->>Browser: index.html
Diagrams follow the page's light or dark mode.
Another example
stateDiagram-v2
[*] --> Scan
Scan --> Render
Render --> Write
Write --> [*]
Write --> Scan: file changed (--serve)
Offline use
By default mermaid.js is loaded from the jsDelivr CDN, and only on pages that contain a diagram. To avoid the network entirely, pass a local copy:
In a static build the file is copied to _webolator/. With --single it is inlined into the output file.