Skip to content

Commit f739ac0

Browse files
committed
feat: Publish EPUB format for download.
Signed-off-by: Radoslav Husar <[email protected]>
1 parent e45ba8b commit f739ac0

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

docs/pom.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<properties>
1818
<version.asciidoctor-maven-plugin>3.2.0</version.asciidoctor-maven-plugin>
1919
<version.org.asciidoctor.asciidoctorj-pdf>2.3.19</version.org.asciidoctor.asciidoctorj-pdf>
20+
<version.org.asciidoctor.asciidoctorj-epub3>2.2.0</version.org.asciidoctor.asciidoctorj-epub3>
2021
</properties>
2122

2223
<build>
@@ -31,9 +32,14 @@
3132
<artifactId>asciidoctorj-pdf</artifactId>
3233
<version>${version.org.asciidoctor.asciidoctorj-pdf}</version>
3334
</dependency>
35+
<dependency>
36+
<groupId>org.asciidoctor</groupId>
37+
<artifactId>asciidoctorj-epub3</artifactId>
38+
<version>2.2.0</version>
39+
</dependency>
3440
</dependencies>
3541
<executions>
36-
<!-- User guide html + pdf -->
42+
<!-- User guide - HTML -->
3743
<execution>
3844
<id>output-html-user-guide</id>
3945
<phase>package</phase>
@@ -68,6 +74,7 @@
6874
<enableVerbose>true</enableVerbose>
6975
</configuration>
7076
</execution>
77+
<!-- User guide - PDF -->
7178
<execution>
7279
<id>output-pdf-user-guide</id>
7380
<phase>generate-resources</phase>
@@ -89,6 +96,28 @@
8996
<outputFile>mod_cluster-v2-user-guide.pdf</outputFile>
9097
</configuration>
9198
</execution>
99+
<!-- User guide - EPUB -->
100+
<execution>
101+
<id>output-epub-user-guide</id>
102+
<phase>generate-resources</phase>
103+
<goals>
104+
<goal>process-asciidoc</goal>
105+
</goals>
106+
<configuration>
107+
<backend>epub3</backend>
108+
<resources>
109+
<resource>
110+
<directory>src/main/asciidoc/images</directory>
111+
<targetPath>images</targetPath>
112+
</resource>
113+
</resources>
114+
<doctype>book</doctype>
115+
<sourceDirectory>src/main/asciidoc</sourceDirectory>
116+
<sourceDocumentName>index.adoc</sourceDocumentName>
117+
<enableVerbose>true</enableVerbose>
118+
<outputFile>mod_cluster-v2-user-guide.epub</outputFile>
119+
</configuration>
120+
</execution>
92121
<!-- Developer resources html (migrated from old JBoss Wiki) -->
93122
<execution>
94123
<id>output-html-developer-resources</id>

docs/src/main/asciidoc/introduction.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ifeval::["{backend}" == "html5"]
2-
TIP: This document is also available as a link:mod_cluster-v2-user-guide.pdf[PDF to download].
2+
TIP: This document is also available as a link:mod_cluster-v2-user-guide.pdf[PDF] and link:mod_cluster-v2-user-guide.epub[EPUB] to download.
33
endif::[]
44

55
[[overview]]

0 commit comments

Comments
 (0)