Skip to content

Commit 49a654d

Browse files
authored
Navigation: Set expand depth to 0 (#371)
* Navigation: Set expand depth to 0 * Revert shibuya.js
1 parent 1246c5d commit 49a654d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Elastic.Markdown/Slices/Layout/_TocTree.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<aside id="lside" class="sy-lside md:w-72 md:shrink-0 print:hidden">
33
<div class="sy-lside-inner md:sticky">
44
<div class="sy-scrollbar p-6">
5-
<div class="globaltoc" data-expand-depth="1">
5+
<div class="globaltoc" data-expand-depth="0">
66
<p class="caption" role="heading" aria-level="3">
77
<span class="caption-text">Elastic Docs Guide</span>
88
</p>

src/Elastic.Markdown/_static/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,11 @@ See https://github.com/elastic/docs-builder/issues/219 for further details
198198

199199
.yue ol.code-callouts li::marker {
200200
display: none;
201+
}
202+
203+
204+
/* Just a quick change to be able to click on also on the whitespace within the navigation items */
205+
.globaltoc a.reference.internal {
206+
display: inline-block;
207+
width: 100%
201208
}

0 commit comments

Comments
 (0)