Asciidoc-Doku hinzugefügt.

This commit is contained in:
2026-01-17 16:28:00 +01:00
parent ca72fcc33c
commit 8089a257d1
3 changed files with 63 additions and 0 deletions

39
docs/pom.xml Normal file
View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.kapdion.pisano</groupId>
<artifactId>productknowledge-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>docs</artifactId>
<!-- ... existing code ... -->
<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>
<!-- Pfad-Helper, um auf Code in anderen Modulen zuzugreifen -->
<project-root>${project.basedir}/..</project-root>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,10 @@
= Dokumentation für {project-name}
Vorname Nachname <autor@example.com>
:icons: font
== Einleitung
Dies ist die zentrale Dokumentation für unser Jakarta EE & Spring Projekt.
== Module
* *api-definition*: Enthält die Api.
* *Web*: Angular Frontend und REST-Controller.

14
pom.xml
View File

@@ -18,6 +18,7 @@
<module>client-lib</module>
<module>client-app</module>
<module>web-frontend</module>
<module>docs</module>
</modules>
<properties>
@@ -44,4 +45,17 @@
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>2.2.4</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>