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.
This commit is contained in:
Sam Brannen
2021-06-21 17:52:18 +02:00
parent f9bcb99040
commit 71995a9087
2 changed files with 7 additions and 0 deletions

View File

@@ -155,6 +155,9 @@ asciidoctorj {
asciidoctor {
baseDirFollowsSourceDir()
configurations 'asciidoctorExt'
attributes([
noheader: '' // custom header in docinfo-header.html
])
sources {
include '*.adoc'
}

View File

@@ -0,0 +1,4 @@
<div id="header">
<h1>Spring Framework Documentation</h1>
<span><strong>{revnumber}</strong></span>
</div>