Let's say I have this simple adoc file
:imagesdir: images
image::onion.png[]
[plantuml,plant,png]
....
usecase plant
....
the first line is just an image the second is a plantUml diagram.
by running
cp *.png out/images
asciidoctor -D out -r asciidoctor-diagram root.adoc
I would copy all the images in the output folder and generate a html file including the plantUml diagram in png format in the out folder.
GitHub does not understand html. Though It does understand adoc, it doesn't render the plantUml diagrams.
GitHub has its own markdown dialect. I.e., we have to generate this format instead of html.
asciidoc does not support generating to markdown natively. Thus we have to use pandoc
asciidoctor-diagram will generate the png files for the plantUml
-b docbook will transform adoc inot docbook format
pandoc will take the docbook format and generate the GigHub specific (-t grm) markdown
What still needs to be done is publish the markdown and the images to GitHub Wiki. The GitHub action file looks like this