asciidoctor / asciidoctor-maven-plugin

A Maven plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
http://asciidoctor.org
Apache License 2.0
318 stars 122 forks source link

Fix diagram images path in site modules #762

Open abelsromero opened 9 months ago

abelsromero commented 9 months ago

Thank you for taking your time to talk with us!

What is this issue about?

Description

Using asciidoctorj-diagram with the maven-site modules causes diagram images to be created in the source path.

Environment information

abelsromero commented 9 months ago

The issue is caused because the site converter converts to String and then Doxia (Maven's site component) creates the image files from it. Hence asciidoctor-diagram generates images in the only path available, the one where the source is.

The current workaround of setting imagesoutdir attribute won't work when the sources are found in different sub-folders.

abelsromero commented 1 week ago

Related https://github.com/asciidoctor/asciidoctor-maven-plugin/issues/349

abelsromero commented 1 week ago

I am starting a conversation with the Maven team, because without changes in Doxia this cannot be fixed in a consistent way.

https://lists.apache.org/thread/z0thrxyv9tybot6xpkd8ft9nc1mc3nj9