Skip to content

Commit fa76440

Browse files
Jay Bryantgregturn
authored andcommitted
Update document production
Use the latest version of spring-doc-resources. Add epub output. Put each type of output into its own directory in the zip file. (Previously, the assembly plugin picked up only the HTML output.)
1 parent cd190f6 commit fa76440

File tree

2 files changed

+48
-6
lines changed

2 files changed

+48
-6
lines changed

docs.xml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,33 @@
99
<fileSets>
1010
<fileSet>
1111
<!--
12-
Adds reference manual (html and pdf) to the distribution archive
12+
Adds reference manual (html) to the distribution archive
1313
under the 'docs/reference' directory see pom.xml 'maven-javadoc-plugin' declaration.
1414
-->
15-
<directory>target/site/reference</directory>
16-
<outputDirectory>reference</outputDirectory>
15+
<directory>target/site/reference/html</directory>
16+
<outputDirectory>reference/html</outputDirectory>
17+
</fileSet>
18+
<fileSet>
19+
<!--
20+
Adds reference manual (pdf) to the distribution archive
21+
under the 'docs/reference' directory see pom.xml 'maven-javadoc-plugin' declaration.
22+
-->
23+
<directory>target/site/reference/pdf</directory>
24+
<includes>
25+
<include>index.pdf</include>
26+
</includes>
27+
<outputDirectory>reference/pdf</outputDirectory>
28+
</fileSet>
29+
<fileSet>
30+
<!--
31+
Adds reference manual (epub) to the distribution archive
32+
under the 'docs/reference' directory see pom.xml 'maven-javadoc-plugin' declaration.
33+
-->
34+
<directory>target/site/reference/epub</directory>
35+
<includes>
36+
<include>index.epub</include>
37+
</includes>
38+
<outputDirectory>reference/epub</outputDirectory>
1739
</fileSet>
1840
<fileSet>
1941
<!--

pom.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
<xmlunit.version>2.7.0</xmlunit.version>
124124
<xws-security.version>3.0</xws-security.version>
125125
<xom.version>1.2.5</xom.version>
126-
<docs.resources.version>0.2.1.RELEASE</docs.resources.version>
126+
<docs.resources.version>0.2.5</docs.resources.version>
127127
</properties>
128128

129129
<dependencyManagement>
@@ -535,12 +535,17 @@
535535
<plugin>
536536
<groupId>org.asciidoctor</groupId>
537537
<artifactId>asciidoctor-maven-plugin</artifactId>
538-
<version>1.5.6</version>
538+
<version>2.1.0</version>
539539
<dependencies>
540540
<dependency>
541541
<groupId>org.asciidoctor</groupId>
542542
<artifactId>asciidoctorj-pdf</artifactId>
543-
<version>1.5.0-alpha.15</version>
543+
<version>1.5.4</version>
544+
</dependency>
545+
<dependency>
546+
<groupId>org.asciidoctor</groupId>
547+
<artifactId>asciidoctorj-epub3</artifactId>
548+
<version>1.5.1</version>
544549
</dependency>
545550
</dependencies>
546551
<executions>
@@ -577,10 +582,25 @@
577582
<goal>process-asciidoc</goal>
578583
</goals>
579584
<configuration>
585+
<outputDirectory>${project.build.directory}/site/reference/pdf</outputDirectory>
580586
<backend>pdf</backend>
581587
<sourceHighlighter>coderay</sourceHighlighter>
582588
</configuration>
583589
</execution>
590+
591+
<execution>
592+
<id>epub</id>
593+
<phase>generate-resources</phase>
594+
<inherited>false</inherited>
595+
<goals>
596+
<goal>process-asciidoc</goal>
597+
</goals>
598+
<configuration>
599+
<outputDirectory>${project.build.directory}/site/reference/epub</outputDirectory>
600+
<backend>epub3</backend>
601+
<sourceHighlighter>coderay</sourceHighlighter>
602+
</configuration>
603+
</execution>
584604
</executions>
585605

586606
<configuration>

0 commit comments

Comments
 (0)