diff --git a/spring-shell-docs/pom.xml b/spring-shell-docs/pom.xml
index b0d0644e..09d9cf8a 100644
--- a/spring-shell-docs/pom.xml
+++ b/spring-shell-docs/pom.xml
@@ -11,13 +11,13 @@
spring-shell-parent
3.0.0.BUILD-SNAPSHOT
-
+
Spring Shell reference documentation
- 1.5.5
- 1.5.0-alpha.16
- 1.5.6
- 1.7.26
+ 2.1.0
+ 1.5.4
+ 2.5.1
+ 0.2.5
@@ -55,7 +55,51 @@
+
+
+ com.googlecode.maven-download-plugin
+ download-maven-plugin
+
+
+ unpack-doc-resources
+ generate-resources
+
+ wget
+
+
+ https://repo.spring.io/release/io/spring/docresources/spring-doc-resources/${spring-doc-resources.version}/spring-doc-resources-${spring-doc-resources.version}.zip
+ true
+ ${project.build.directory}/refdocs/
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+
+
+ copy-asciidoc-resources
+ generate-resources
+ false
+
+ copy-resources
+
+
+ ${project.build.directory}/refdocs/
+
+
+ src/main/asciidoc
+ false
+
+
+
+
+
+
+
+
org.asciidoctor
asciidoctor-maven-plugin
@@ -66,62 +110,65 @@
asciidoctorj-pdf
${asciidoctorj.pdf.version}
-
-
- org.jruby
- jruby-complete
- ${jruby.version}
-
-
-
- org.asciidoctor
- asciidoctorj
- ${asciidoctorj.version}
-
-
- index.adoc
- book
-
- true
- warn
- ${project.version}
- ${project.artifactId}
-
-
- generate-html5
- prepare-package
+ html
+ generate-resources
+ false
process-asciidoc
html5
+ ${project.build.directory}/site/reference/html
+ highlight.js
-
- shared-head
- coderay
+ // these attributes are required to use the doc resources
+ shared
+ css/
+ spring.css
+ true
+ font
+ js/highlight
+ github
+ true
+
- generate-pdf
- prepare-package
+ pdf
+ generate-resources
+ false
process-asciidoc
+ ${project.build.directory}/site/reference/pdf
pdf
coderay
-
-
-
-
+
+
+ ${project.build.directory}/refdocs/
+ index.adoc
+ book
+
+ ${project.version}
+ ${project.name}
+ ${project.version}
+ true
+ 4
+ true
+ ${project.basedir}
+
+
+
+
org.apache.maven.plugins
diff --git a/spring-shell-docs/src/assembly/docs-zip.xml b/spring-shell-docs/src/assembly/docs-zip.xml
index 9666020a..fee1d5bb 100644
--- a/spring-shell-docs/src/assembly/docs-zip.xml
+++ b/spring-shell-docs/src/assembly/docs-zip.xml
@@ -8,15 +8,16 @@
false
- ${project.build.directory}/generated-docs
- reference/htmlsingle
+ ${project.build.directory}/site/reference/html
+ site/reference/htmlsingle
index.html
+ **/*
- ${project.build.directory}/generated-docs
- reference/pdf
+ ${project.build.directory}/site/reference/pdf
+ site/reference/pdf
index.pdf
@@ -26,4 +27,4 @@
api
-
\ No newline at end of file
+
diff --git a/spring-shell-docs/src/main/asciidoc/index.adoc b/spring-shell-docs/src/main/asciidoc/index.adoc
index af58b390..41de753b 100644
--- a/spring-shell-docs/src/main/asciidoc/index.adoc
+++ b/spring-shell-docs/src/main/asciidoc/index.adoc
@@ -5,7 +5,15 @@ Eric Bottard;
:icons: font
:experimental: // For kbd: macro
-Version {project-version}
+ifdef::backend-html5[]
+*{projectVersion}*
+
+NOTE: This documentation is also available as https://docs.spring.io/spring-shell/docs/{projectVersion}/reference/pdf/index.pdf[PDF].
+endif::[]
+
+ifdef::backend-pdf[]
+NOTE: This documentation is also available as https://docs.spring.io/spring-shell/docs/{projectVersion}/reference/htmlsingle/index.html[HTML].
+endif::[]
(C) 2017 Pivotal Software, Inc.