Increase maximum side navigation depth by one level (#2454)

* Increase maximum side navigation depth by one

* Break up Text Search guide into multiple pages

* Update links to Text Search guide

* Broken link

* One more broken link

* One more broken link

* Shorten title
This commit is contained in:
Abdon Pijpelink
2026-06-29 15:37:30 +02:00
committed by GitHub
parent 2cc218b9f4
commit 60c789224e
12 changed files with 452 additions and 316 deletions
@@ -107,6 +107,17 @@
{{ $isActive = true }}
{{ end }}
{{ range .Sections }}
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
{{ $isActive = true }}
{{ end }}
{{ range .RegularPages }}
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
{{ $isActive = true }}
{{ end }}
{{ end }}
{{ end }}
{{ $sectionLink := .Permalink }}
{{ if .Params.is_empty }}
@@ -144,6 +155,34 @@
</li>
{{ end }}
{{ end }}
{{ range .Sections }}
{{ if not .Params.hideInSidebar }}
{{ $subIsActive := false }}
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
{{ $subIsActive = true }}
{{ end }}
{{ range .RegularPages }}
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
{{ $subIsActive = true }}
{{ end }}
{{ end }}
<li class="docs-menu__links-submenu-item docs-menu__links-submenu-item--section">
<details {{ if $subIsActive }}open{{ end }}>
<summary{{ if eq .File.UniqueID $currentNode.File.UniqueID }} class="active"{{ end }}><a href="{{ .Permalink }}">{{ .Title }}</a></summary>
<ul class="docs-menu__links-sub-submenu">
{{ range .RegularPages }}
{{ if not .Params.hideInSidebar }}
<li class="docs-menu__links-sub-submenu-item{{ if eq .File.UniqueID $currentNode.File.UniqueID }} active{{ end }}">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</details>
</li>
{{ end }}
{{ end }}
</ul>
</nav>
</details>