Sorry for not answering until now, too much work and too much flu lately.
Andreas Sewe wrote
OK, I have the classic src/main/asciidoc directory, along with a src/main/resources directory containing css, icons, and img directories. The asciidoctor-maven-plugin produces its results in target/generated-docs, the maven-resources-plugin produces its results in target/classes.
Anyway, what I seem to need is a way to prepend the appropriate number of ../ prefixes to my stylesheet and image references. If the asciidoctor-maven-plugin knew that its outputDirectory was one level above the css folder, it could adapt (for each of the calls to Asciidoc) the stylesheet path accordingly. Is this feasible or am I missing something?
I assume you're setting `imagesDir` property in the pom and the `stylesheet` attribute right?
In that case, my guts tell me it could be done, it will require some inelegant code though. The thing is validating if those propersties are set, then their values should be recalculated for each file.
In the following selected lines you can see how the target folder is calculated when preserveDirectories is set:
https://github.com/asciidoctor/asciidoctor-maven-plugin/blob/master/src/main/java/org/asciidoctor/maven/AsciidoctorMojo.java#L201-204Something similar should be done in the same method to calculate the paths.
Sadly, right now I’m extremely busy and I won’t be able to attack this in some time, so if you want to have a look at it I'd be more than happy to help with anything I can, and merge the PR.