]> source.dussan.org Git - aspectj.git/commitdiff
Experimentally add asciidoctor-maven-plugin to 'docs' module
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 8 Jan 2022 04:49:07 +0000 (11:49 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 6 Jan 2024 09:09:11 +0000 (10:09 +0100)
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
docs/pom.xml
pom.xml

index 52c58b03da87357155aa9f0acc10b0be1a7c011f..e6c256dd9b102711bf3d62bfadb75a65b6f91150 100644 (file)
   <artifactId>docs</artifactId>
 
   <profiles>
+    <profile>
+      <id>create-docs-new</id>
+      <activation>
+        <property>
+          <name>createDocs__NEW</name>
+          <value>true</value>
+        </property>
+      </activation>
+
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.asciidoctor</groupId>
+            <artifactId>asciidoctor-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>create-asciidoc</id>
+                <phase>generate-resources</phase>
+                <goals>
+                  <goal>process-asciidoc</goal>
+                </goals>
+                <configuration>
+                  <sourceDirectory>${project.basedir}</sourceDirectory>
+                  <outputDirectory>${project.build.directory}/html</outputDirectory>
+                  <preserveDirectories>true</preserveDirectories>
+                  <relativeBaseDir>true</relativeBaseDir>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
     <profile>
       <id>create-docs</id>
       <activation>
diff --git a/pom.xml b/pom.xml
index e7b1a20cbdea81c09b3992f9b9bcbbae315d1a29..3b10e3bd1dfe3503d44b47d533af092278db8dfa 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                        <artifactId>maven-javadoc-plugin</artifactId>
                                        <version>3.2.0</version>
                                </plugin>
+                               <plugin>
+                                       <groupId>org.asciidoctor</groupId>
+                                       <artifactId>asciidoctor-maven-plugin</artifactId>
+                                       <version>2.2.1</version>
+                                       <configuration>
+                                               <attributes>
+                                                       <source-highlighter>coderay</source-highlighter>
+                                                       <imagesdir>./images</imagesdir>
+                                                       <toc>left</toc>
+                                                       <icons>font</icons>
+                                               </attributes>
+                                       </configuration>
+                               </plugin>
                        </plugins>
                </pluginManagement>