Skip to content

Commit f3bbc37

Browse files
committed
Added generation of epub
1 parent dd321f1 commit f3bbc37

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

spring-cloud-task-docs/pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
<artifactId>asciidoctorj-pdf</artifactId>
8181
<version>${asciidoctorj.pdf.version}</version>
8282
</dependency>
83+
<dependency>
84+
<groupId>org.asciidoctor</groupId>
85+
<artifactId>asciidoctorj-epub3</artifactId>
86+
<version>${asciidoctorj.pdf.version}</version>
87+
</dependency>
8388
</dependencies>
8489
<configuration>
8590
<sourceDirectory>${project.build.directory}/refdocs/</sourceDirectory>
@@ -127,6 +132,23 @@
127132
</attributes>
128133
</configuration>
129134
</execution>
135+
<execution>
136+
<id>generate-epub</id>
137+
<phase>generate-resources</phase>
138+
<goals>
139+
<goal>process-asciidoc</goal>
140+
</goals>
141+
<configuration>
142+
<backend>epub3</backend>
143+
<sourceHighlighter>coderay</sourceHighlighter>
144+
<attributes>
145+
<icons>font</icons>
146+
<pagenums />
147+
<sectnums />
148+
<toc />
149+
</attributes>
150+
</configuration>
151+
</execution>
130152
</executions>
131153
</plugin>
132154
<plugin>
@@ -169,6 +191,7 @@
169191
<exclude name="index.pdf"/>
170192
</zipfileset>
171193
<zipfileset dir="${project.build.directory}/generated-docs/" includes="index.pdf" prefix="reference/pdf"/>
194+
<zipfileset dir="${project.build.directory}/generated-docs/" includes="index.epub" prefix="reference/epub"/>
172195
<zipfileset dir="../target/site/apidocs" prefix="apidocs" />
173196
</zip>
174197
</target>

0 commit comments

Comments
 (0)