Antora für Dokumentation.
This commit is contained in:
73
docs/pom.xml
73
docs/pom.xml
@@ -13,32 +13,73 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- <plugin>-->
|
||||
<!-- <groupId>org.asciidoctor</groupId>-->
|
||||
<!-- <artifactId>asciidoctor-maven-plugin</artifactId>-->
|
||||
<!-- <!– Keine Version nötig, kommt vom Parent –>-->
|
||||
<!-- <executions>-->
|
||||
<!-- <execution>-->
|
||||
<!-- <id>generate-docs</id>-->
|
||||
<!-- <phase>prepare-package</phase>-->
|
||||
<!-- <goals>-->
|
||||
<!-- <goal>process-asciidoc</goal>-->
|
||||
<!-- </goals>-->
|
||||
<!-- <configuration>-->
|
||||
<!-- <attributes>-->
|
||||
<!-- <project-root>${project.basedir}/..</project-root>-->
|
||||
<!-- <project-name>${project.parent.name}</project-name>-->
|
||||
<!-- <project-version>${project.version}</project-version>-->
|
||||
<!-- <project-root>${project.basedir}/..</project-root>-->
|
||||
<!-- <revnumber>${project.version}</revnumber>-->
|
||||
<!-- <revdate>${maven.build.timestamp}</revdate>-->
|
||||
<!-- <source-highlighter>coderay</source-highlighter>-->
|
||||
<!-- </attributes>-->
|
||||
<!-- </configuration>-->
|
||||
<!-- </execution>-->
|
||||
<!-- </executions>-->
|
||||
<!-- </plugin>-->
|
||||
<plugin>
|
||||
<groupId>org.asciidoctor</groupId>
|
||||
<artifactId>asciidoctor-maven-plugin</artifactId>
|
||||
<!-- Keine Version nötig, kommt vom Parent -->
|
||||
<groupId>com.github.eirslett</groupId>
|
||||
<artifactId>frontend-maven-plugin</artifactId>
|
||||
<version>1.15.0</version>
|
||||
<executions>
|
||||
<!-- 1. Node.js und npm lokal im docs-Verzeichnis installieren -->
|
||||
<execution>
|
||||
<id>generate-docs</id>
|
||||
<phase>prepare-package</phase>
|
||||
<id>install-node-and-npm</id>
|
||||
<goals>
|
||||
<goal>process-asciidoc</goal>
|
||||
<goal>install-node-and-npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<attributes>
|
||||
<!-- Pfad-Helper, um auf Code in anderen Modulen zuzugreifen -->
|
||||
<project-root>${project.basedir}/..</project-root>
|
||||
<project-name>${project.parent.name}</project-name>
|
||||
<project-version>${project.version}</project-version>
|
||||
<project-root>${project.basedir}/..</project-root>
|
||||
<revnumber>${project.version}</revnumber>
|
||||
<revdate>${maven.build.timestamp}</revdate>
|
||||
<source-highlighter>coderay</source-highlighter>
|
||||
</attributes>
|
||||
<nodeVersion>v20.10.0</nodeVersion>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- 2. Antora lokal installieren -->
|
||||
<execution>
|
||||
<id>npm-install-antora</id>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<arguments>install @antora/cli@3.1 @antora/site-generator@3.1</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- 3. Antora ausführen, um die Seite zu bauen -->
|
||||
<execution>
|
||||
<id>run-antora</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>npx</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<arguments>antora antora-playbook.yml</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
Reference in New Issue
Block a user