Skip to content

Commit f6b7730

Browse files
committed
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
1 parent c89430e commit f6b7730

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/docs/asciidoc/index.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
= Spring Boot Actuator Web API Documentation
22
Andy Wilkinson
3+
v{gradle-project-version}
4+
:!version-label:
35
:doctype: book
46
:toc: left
57
:toclevels: 4

spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
:!version-label:
12
:doctype: book
23
:idprefix:
34
:idseparator: -

spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.adoc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[[spring-boot-reference-documentation]]
22
= Spring Boot Reference Documentation
33
include::authors.adoc[]
4+
v{spring-boot-version}
45
:docinfo: shared
56
include::attributes.adoc[]
67

7-
*{spring-boot-version}*
8-
98
The reference documentation consists of the following sections:
109

1110
[horizontal]

spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.singleadoc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[[spring-boot-reference-documentation]]
22
= Spring Boot Reference Documentation
33
include::authors.adoc[]
4+
v{spring-boot-version}
45
:docinfo: shared
56
include::attributes.adoc[]
67

7-
*{spring-boot-version}*
8-
98
include::legal.adoc[leveloffset=+1]
109
include::documentation-overview.adoc[leveloffset=+1]
1110
include::getting-started.adoc[leveloffset=+1]

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/index.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
= Spring Boot Gradle Plugin Reference Guide
22
Andy Wilkinson, Scott Frederick
3+
v{gradle-project-version}
4+
:!version-label:
35
:doctype: book
46
:toc: left
57
:toclevels: 4

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/index.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
= Spring Boot Maven Plugin Documentation
22
Stephane Nicoll, Andy Wilkinson, Scott Frederick
3+
v{gradle-project-version}
4+
:!version-label:
35
:doctype: book
46
:toc: left
57
:toclevels: 4

0 commit comments

Comments
 (0)