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
317 stars 122 forks source link

Fix diagram images path in site modules #762

Open abelsromero opened 7 months ago

abelsromero commented 7 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 7 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.