Antora diagram formats
DevCentr docs hubs support two primary text-diagram formats, both preprocessed to SVG at Antora build time via Kroki (asciidoctor-kroki):
| Format | AsciiDoc form | Best for |
|---|---|---|
Mermaid |
|
Flowcharts, sequence-ish orientation, quick authoring |
PlantUML |
|
Sequence, component, and structured UML-style figures |
Hand-authored SVG under docs/modules/*/images/ remains first-class for mockups and brand figures (run skill fix-docs-encoding after edits).
Playbook wiring (this hub)
asciidoc:
extensions:
- asciidoctor-kroki
attributes:
stem: latexmath
kroki-server-url: https://kroki.io
kroki-fetch-diagram: true
kroki-fetch-diagram: true embeds diagram SVG in the published site so readers do not call Kroki at view time.
CI needs network access to the Kroki server during antora (or point kroki-server-url at a self-hosted instance).
Install: pnpm add -D asciidoctor-kroki in the playbook repo.
Runtime Mermaid (optional fallback)
Supplemental site-mermaid.js still ships for progressive enhancement and for sites that have not enabled Kroki yet.
When Kroki converts a block at build time, the listing becomes an image — the runtime helper finds nothing to re-render (no double draw).
Facto pack (not Valentus core)
Valentus UI stays a lean theme.
Reusable playbook defaults (Valentus + Lunr + stem/math + Kroki diagrams + related essentials) live in the separate compose pack antora-supplemental/antora-facto — the de-facto stack, discovered by pack name like a VS Code extension pack, not forced into the Valentus v2 rolling tag.
Related
-
Internet Reliability (uses both formats)