Skip to content

Commit

Permalink
documentation build
Browse files Browse the repository at this point in the history
  • Loading branch information
maximthomas committed Jul 1, 2024
1 parent e7df3d4 commit b7bad34
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
78 changes: 78 additions & 0 deletions openig-doc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,83 @@
</plugins>
</build>
</profile>

<profile>
<id>man-pages</id>
<activation>
<os><family>unix</family></os>
<jdk>8</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openidentityplatform.commons</groupId>
<artifactId>doc-maven-plugin</artifactId>
<version>${commons-plugin.version}</version>
<executions>
<execution>
<id>build-man-pages</id>
<phase>package</phase>
<goals>
<goal>process</goal>
<goal>build</goal>
<goal>release</goal>
</goals>
</execution>
</executions>
<configuration>
<projectName>OpenAM</projectName>
<projectVersion>${project.version}</projectVersion>
<releaseVersion>${project.version}</releaseVersion>
<buildReleaseZip>true</buildReleaseZip>
<googleAnalyticsId />
<isDraftMode>no</isDraftMode>
<formats combine.self="override">
<format>man</format>
<format>epub</format>
<format>html</format>
<format>pdf</format>
<format>webhelp</format>
<format>xhtml5</format>
</formats>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>zip-docs</id>
<phase>package</phase>
<configuration>
<target>
<property name="compress_formats" value="webhelp,xhtml,html"/>
<ant antfile="${basedir}/src/main/ant/zip.xml">
<target name="docs"/>
</ant>>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>${ant.contrib.version}</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
22 changes: 22 additions & 0 deletions openig-doc/src/main/ant/zip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<project name="zip">
<target name="docs">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<foreach param="docname" target="formats" inheritall="true">
<path>
<dirset dir="${basedir}/src/main/docbkx/" casesensitive="yes">
<include name="*/"/>
<exclude name="*/*/**"/>
<exclude name="shared"/>
</dirset>
</path>
<mapper type="flatten"/>
</foreach>
</target>
<target name="formats">
<foreach param="format" list="${compress_formats}" target="dozip" inheritall="true"/>
</target>
<target name="dozip" >
<echo message="compressing ${format} ${docname} from ${project_build_dir}/docbkx/${format}/${docname} to ${project_build_dir}/docbkx/${format}/${docname}.zip"/>
<zip basedir="${project.build.directory}/docbkx/${format}/${docname}" destfile="${project.build.directory}/docbkx/${format}/${docname}.zip"/>
</target>
</project>
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
<forgerockBuildToolsVersion>1.0.3</forgerockBuildToolsVersion>
<checkstylePluginVersion>2.9.1</checkstylePluginVersion>
<checkstyleVersion>5.5</checkstyleVersion>
<commons-plugin.version>2.1.4</commons-plugin.version>
<ant.contrib.version>1.0b3</ant.contrib.version>
<java.surefire.options>-server</java.surefire.options>
</properties>

Expand Down

0 comments on commit b7bad34

Please sign in to comment.