diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-01-03 13:52:35 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-01-06 10:09:11 +0100 |
commit | 217df7e0bfef4aea30453ad2595702abecca57d7 (patch) | |
tree | adf16f132ea3feadc006b45aeeea575e07a9df79 /docs/pom.xml | |
parent | 451cd62eac71a02f653521c6a40bdd7fb530df5f (diff) | |
download | aspectj-217df7e0bfef4aea30453ad2595702abecca57d7.tar.gz aspectj-217df7e0bfef4aea30453ad2595702abecca57d7.zip |
Remove 'imagesdir' from Asciidoctor Maven config
User relative paths for images instead.
In one case, we need to copy images from a subdirectory one level up,
because otherwise the images are only found in the included document,
but not in the single-page one including it from the subdirectory. In
all other cases, included ADOCs are located in the same directory as the
including document.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'docs/pom.xml')
-rw-r--r-- | docs/pom.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/pom.xml b/docs/pom.xml index e6c256dd9..d0726a217 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -23,6 +23,30 @@ <build> <plugins> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <executions> + <execution> + <id>copy-images-compiler-weaver</id> + <phase>generate-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${project.build.directory}/html/developer</outputDirectory> + <resources> + <resource> + <directory>${project.basedir}/developer/compiler-weaver</directory> + <includes> + <include>*.gif</include> + </includes> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId> <executions> |