Integrating Sphinx for documentation refs #23833

This commit is contained in:
Luca Frosini 2022-09-09 14:17:25 +02:00
parent 02db577bfc
commit 1f52f9e5df
2 changed files with 29 additions and 7 deletions

View File

@ -3,6 +3,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for gCube Catalogue (gCat) Service
## [v2.4.1-SNAPSHOT]
- Integrating Sphinx for documentation [#23833]
## [v2.4.0]
- Added moderation link in moderation message [#23142]

31
pom.xml
View File

@ -12,7 +12,7 @@
<groupId>org.gcube.data-catalogue</groupId>
<artifactId>gcat</artifactId>
<packaging>war</packaging>
<version>2.4.0</version>
<version>2.4.1-SNAPSHOT</version>
<name>gCube Catalogue (gCat) Service</name>
<description>
This service allows any client to publish on the gCube Catalogue.
@ -249,13 +249,31 @@
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Enunciate Maven plugin -->
<!-- Sphinx plugin' -->
<plugin>
<groupId>kr.motd.maven</groupId>
<artifactId>sphinx-maven-plugin</artifactId>
<version>2.10.0</version>
<configuration>
<outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}/docs</outputDirectory>
<builder>html</builder>
<configDirectory>${basedir}/docs</configDirectory>
<sourceDirectory>${basedir}/docs</sourceDirectory>
</configuration>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Enunciate Maven plugin -->
<plugin>
<groupId>com.webcohesion.enunciate</groupId>
<artifactId>enunciate-maven-plugin</artifactId>
@ -285,8 +303,8 @@
<outputDirectory>target</outputDirectory>
<resources>
<resource>
<targetPath>${project.build.directory}/${project.artifactId}-${project.version}/docs</targetPath>
<directory>${project.build.directory}/docs</directory>
<targetPath>${project.build.directory}/${project.artifactId}-${project.version}/apidocs</targetPath>
<directory>${project.build.directory}/apidocs</directory>
<filtering>true</filtering>
</resource>
</resources>
@ -295,7 +313,6 @@
</executions>
</plugin>
</plugins>
</build>
</project>