From 217df7e0bfef4aea30453ad2595702abecca57d7 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Wed, 3 Jan 2024 13:52:35 +0700 Subject: [PATCH] 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 --- docs/pom.xml | 24 ++++++++++++++++++++++++ pom.xml | 7 ++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/pom.xml b/docs/pom.xml index e6c256dd9..d0726a217 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -22,6 +22,30 @@ + + org.apache.maven.plugins + maven-resources-plugin + + + copy-images-compiler-weaver + generate-resources + + copy-resources + + + ${project.build.directory}/html/developer + + + ${project.basedir}/developer/compiler-weaver + + *.gif + + + + + + + org.asciidoctor asciidoctor-maven-plugin diff --git a/pom.xml b/pom.xml index 3b10e3bd1..3fd4a5ff8 100644 --- a/pom.xml +++ b/pom.xml @@ -302,6 +302,11 @@ maven-install-plugin 2.5.2 + + org.apache.maven.plugins + maven-resources-plugin + 3.3.1 + org.apache.maven.plugins maven-enforcer-plugin @@ -419,7 +424,7 @@ coderay - ./images + left font -- 2.39.5