Skip to content

Commit 71995a9

Browse files
committed
Introduce custom header for HTML5 ref docs
This commit disables the automatic header generation from Asciidoc's default template and replaces it with a custom header that omits the "Version" label before the revision number. The revision number is also displayed in a simple span tag in order to reduce the amount of vertical space taken by the header.
1 parent f9bcb99 commit 71995a9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

gradle/docs.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ asciidoctorj {
155155
asciidoctor {
156156
baseDirFollowsSourceDir()
157157
configurations 'asciidoctorExt'
158+
attributes([
159+
noheader: '' // custom header in docinfo-header.html
160+
])
158161
sources {
159162
include '*.adoc'
160163
}

src/docs/asciidoc/docinfo-header.html

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div id="header">
2+
<h1>Spring Framework Documentation</h1>
3+
<span><strong>{revnumber}</strong></span>
4+
</div>

0 commit comments

Comments
 (0)