You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to provide an example with the maven site plugin and asciidoctor-diagrams?
I tried myself, and it does properly generate the diagram, but it doesn't copy it to the resources/images directory. It stores it next to my source adoc file.
After configuring imagesoutdir, it does generate the diagram in the correct location, but it seems too late for the site plugin to see the asset and ends up not copying anything to the target folder.
There's a limitation in how docs are converted to get them in a form that can be embedded in a site. The workaround is to configure the target path for images as described in https://docs.asciidoctor.org/diagram-extension/latest/output/, for instance, add this attribute to your example and it should work.
If you have some complex setup with multiple depths, you can also setup :imagesoutdir: in each AsciiDoc source file.
The path can vary depending on sources and target location set by the user in the pom and maven-site plugin. So there's not much we can do to automate it without a lot of hacky parsing the pom and some guesses (not counting inheritance configurations).
Given that I think it's a really good idea to have it in the example with a note, do you want to extend the current example by adding the diagram configuration? we can take some of the examples from the stand-alone diagram example.
Hello,
Would it be possible to provide an example with the maven site plugin and asciidoctor-diagrams?
I tried myself, and it does properly generate the diagram, but it doesn't copy it to the resources/images directory. It stores it next to my source adoc file.
After configuring imagesoutdir, it does generate the diagram in the correct location, but it seems too late for the site plugin to see the asset and ends up not copying anything to the target folder.
This is my config:
The text was updated successfully, but these errors were encountered: