AsciiDoc
Diagrams
PUML and other diagrams
08-11-2023, source: GitHub: asciidoctor-kroki
-
Install the extension:
yarn add asciidoctor-kroki
-
Enable the extension in
antora-playbook.yml
. Beware, it isasciidoc
extension, notantora
extension, just add another key:antora: extensions: ... asciidoc: extensions: asciidoctor-kroki
Now, there are two choices:
-
Refer to a partial with the
puml
file extension:[plantuml,target=ab-partial-1,format=svg] ---- include::partial$puml/alice-bob.puml[] ----
-
Write down the
puml
code and render it directly:[plantuml,ab-partial-all-1,svg] ---- alice -> bob bob -> alice ----