From 92e6f32e52d6d6041feb4444d2cfc9369442939e Mon Sep 17 00:00:00 2001 From: Jay Bryant Date: Fri, 21 May 2021 10:53:40 -0500 Subject: [PATCH] Add EPUB output Add EPUB output and make all four output formats have links to one another, to enable discoverability and accessibility (for the folks who need a particular format to help them read the document). --- pom.xml | 11 ++++--- spring-batch-docs/pom.xml | 32 +++++++++++++++++-- spring-batch-docs/src/assembly/docs.xml | 5 +++ .../src/main/asciidoc/index.adoc | 5 +-- .../src/main/asciidoc/spring-batch-intro.adoc | 19 ++++++++++- 5 files changed, 61 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index c4a500ede0..94c2fe4dab 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ spring-batch-jsr352-tck spring-batch-docs - + Spring https://spring.io @@ -113,10 +113,11 @@ 2.3.2 0.10.0 2.5.14 - + 0.2.5 1.5.4 + 1.5.1 3.8.1 @@ -276,7 +277,7 @@ - + test-coverage @@ -334,7 +335,7 @@ - + maven-central @@ -385,7 +386,7 @@ - + dsyer diff --git a/spring-batch-docs/pom.xml b/spring-batch-docs/pom.xml index 7f74e5e482..73856a6d68 100644 --- a/spring-batch-docs/pom.xml +++ b/spring-batch-docs/pom.xml @@ -18,7 +18,7 @@ zip - + @@ -66,6 +66,11 @@ asciidoctorj-pdf ${asciidoctorj-pdf.version} + + org.asciidoctor + asciidoctorj-epub3 + ${asciidoctorj-epub.version} + ${project.basedir}/src/main/asciidoc @@ -120,6 +125,27 @@ + + generate-epub + site + + process-asciidoc + + + epub3 + book + + font + + + + + coderay + ${project.version} + ${project.version} + + + @@ -155,7 +181,7 @@ - + spring-releases @@ -167,4 +193,4 @@ - \ No newline at end of file + diff --git a/spring-batch-docs/src/assembly/docs.xml b/spring-batch-docs/src/assembly/docs.xml index 8cc15ad1e9..b8f3a1b971 100644 --- a/spring-batch-docs/src/assembly/docs.xml +++ b/spring-batch-docs/src/assembly/docs.xml @@ -28,5 +28,10 @@ spring-batch-reference.pdf reference/pdf + + target/asciidoc/index-single.epub + spring-batch-reference.epub + reference/epub + diff --git a/spring-batch-docs/src/main/asciidoc/index.adoc b/spring-batch-docs/src/main/asciidoc/index.adoc index a68fde7217..6773cd4416 100644 --- a/spring-batch-docs/src/main/asciidoc/index.adoc +++ b/spring-batch-docs/src/main/asciidoc/index.adoc @@ -2,8 +2,9 @@ include::header/index-header.adoc[] // ====================================================================================== -Welcome to the Spring Batch reference documentation! This documentation is also available -as single link:index-single.html[html] and link:../pdf/spring-batch-reference.pdf[pdf] documents. +This documentation is also available +as a link:index-single.html[single HTML file] and as link:../pdf/spring-batch-reference.pdf[PDF] +and link:../epub/spring-batch-reference.epub[EPUB] documents. The reference documentation is divided into several sections: diff --git a/spring-batch-docs/src/main/asciidoc/spring-batch-intro.adoc b/spring-batch-docs/src/main/asciidoc/spring-batch-intro.adoc index 5162e19f4a..02e4022879 100644 --- a/spring-batch-docs/src/main/asciidoc/spring-batch-intro.adoc +++ b/spring-batch-docs/src/main/asciidoc/spring-batch-intro.adoc @@ -2,8 +2,25 @@ :toc: left :toclevels: 4 -[[spring-batch-intro]] +ifdef::backend-html5[] +This documentation is also available +as link:index.html[multiple HTML files] and as link:../pdf/spring-batch-reference.pdf[PDF] +and link:../epub/spring-batch-reference.epub[EPUB] documents. +endif::[] + +ifdef::backend-pdf[] +This documentation is also available +as link:index.html[multiple HTML files], a link:index-single.html[single HTML file], +and an link:../epub/spring-batch-reference.epub[EPUB] document. +endif::[] + +ifdef::backend-epub3[] +This documentation is also available +as link:index.html[multiple HTML files], a link:index-single.html[single HTML file], +and a link:../pdf/spring-batch-reference.pdf[PDF] document. +endif::[] +[[spring-batch-intro]] == Spring Batch Introduction Many applications within the enterprise domain require bulk processing to perform