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
This commit is contained in:
Andy Wilkinson
2021-06-14 13:24:01 +01:00
parent c89430e174
commit f6b7730dac
6 changed files with 9 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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