Skip to content

Commit 9c08256

Browse files
committed
Reintroduce left-hand side navigation in ref docs
A side effect of 71995a9 caused the dynamic table of contents in the left-hand side navigation to no longer be displayed, likely due to the missing "details" DIV. This commit addresses this issue by applying the custom header only to index.adoc. Consequently, the TOC is now displayed again on all pages except the index page, but the customized header is no longer applied to those pages. We may revisit this issue if we decide that we want the custom header on all pages (and not just the index page). Closes spring-projectsgh-27177
1 parent e0c0e7f commit 9c08256

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

gradle/docs.gradle

+1-4
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ asciidoctorj {
139139
icons: 'font',
140140
idprefix: '',
141141
idseparator: '-',
142-
docinfo: 'shared',
142+
docinfo: 'shared,private-header', // https://docs.asciidoctor.org/asciidoctor/latest/docinfo/
143143
revnumber: project.version,
144144
sectanchors: '',
145145
sectnums: '',
@@ -163,9 +163,6 @@ asciidoctorj {
163163
asciidoctor {
164164
baseDirFollowsSourceDir()
165165
configurations 'asciidoctorExt'
166-
attributes([
167-
noheader: '' // custom header in docinfo-header.html
168-
])
169166
sources {
170167
include '*.adoc'
171168
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<div id="header">
22
<h1>Spring Framework Documentation</h1>
3+
<!--
4+
<div class="details">
5+
<span id="revnumber">{revnumber}</span>
6+
</div>
7+
-->
38
<span><strong>{revnumber}</strong></span>
49
</div>

src/docs/asciidoc/index.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
:noheader:
12
= Spring Framework Documentation
23

34
[horizontal]

0 commit comments

Comments
 (0)