Use Asciidoctor's revision line to provide document's version

Using the revision line means that the revision number is automatically
set. The revision number is then included by the HTML and PDF backends
in the standard location. In the HTML backend that's alongside the
list of authors. In the PDF backend that's on the title page.

Closes gh-26851
pull/27348/head
Andy Wilkinson 3 years ago
parent c89430e174
commit f6b7730dac

@ -1,5 +1,7 @@
= Spring Boot Actuator Web API Documentation = Spring Boot Actuator Web API Documentation
Andy Wilkinson Andy Wilkinson
v{gradle-project-version}
:!version-label:
:doctype: book :doctype: book
:toc: left :toc: left
:toclevels: 4 :toclevels: 4

@ -1,3 +1,4 @@
:!version-label:
:doctype: book :doctype: book
:idprefix: :idprefix:
:idseparator: - :idseparator: -

@ -1,11 +1,10 @@
[[spring-boot-reference-documentation]] [[spring-boot-reference-documentation]]
= Spring Boot Reference Documentation = Spring Boot Reference Documentation
include::authors.adoc[] include::authors.adoc[]
v{spring-boot-version}
:docinfo: shared :docinfo: shared
include::attributes.adoc[] include::attributes.adoc[]
*{spring-boot-version}*
The reference documentation consists of the following sections: The reference documentation consists of the following sections:
[horizontal] [horizontal]

@ -1,11 +1,10 @@
[[spring-boot-reference-documentation]] [[spring-boot-reference-documentation]]
= Spring Boot Reference Documentation = Spring Boot Reference Documentation
include::authors.adoc[] include::authors.adoc[]
v{spring-boot-version}
:docinfo: shared :docinfo: shared
include::attributes.adoc[] include::attributes.adoc[]
*{spring-boot-version}*
include::legal.adoc[leveloffset=+1] include::legal.adoc[leveloffset=+1]
include::documentation-overview.adoc[leveloffset=+1] include::documentation-overview.adoc[leveloffset=+1]
include::getting-started.adoc[leveloffset=+1] include::getting-started.adoc[leveloffset=+1]

@ -1,5 +1,7 @@
= Spring Boot Gradle Plugin Reference Guide = Spring Boot Gradle Plugin Reference Guide
Andy Wilkinson, Scott Frederick Andy Wilkinson, Scott Frederick
v{gradle-project-version}
:!version-label:
:doctype: book :doctype: book
:toc: left :toc: left
:toclevels: 4 :toclevels: 4

@ -1,5 +1,7 @@
= Spring Boot Maven Plugin Documentation = Spring Boot Maven Plugin Documentation
Stephane Nicoll, Andy Wilkinson, Scott Frederick Stephane Nicoll, Andy Wilkinson, Scott Frederick
v{gradle-project-version}
:!version-label:
:doctype: book :doctype: book
:toc: left :toc: left
:toclevels: 4 :toclevels: 4

Loading…
Cancel
Save