Skip to content

Commit 9aa899e

Browse files
committed
CrateDB Cloud: Collapse navigation items on feature/index page
1 parent 97843aa commit 9aa899e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGES
55

66
Unreleased
77
----------
8+
- CrateDB Cloud: Collapse navigation items on ``feature/index`` page
89

910
2024/11/26 0.37.1
1011
-----------------

src/crate/theme/rtd/crate/sidebartoc.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
{% if project == 'CrateDB Cloud' %}
2828
<li class="current">
2929
<a class="current-active" href="{{ pathto(master_doc) }}">CrateDB Cloud</a>
30+
{% if pagename == 'feature/index' %}
31+
{{ toctree(maxdepth=0|toint, collapse=True, includehidden=theme_globaltoc_includehidden|tobool) }}
32+
{% else %}
3033
{{ toctree(maxdepth=4|toint, collapse=True, includehidden=theme_globaltoc_includehidden|tobool) }}
34+
{% endif %}
3135
</li>
3236
{% else %}
3337
<li class="navleft-item"><a href="/docs/cloud/">CrateDB Cloud</a></li>

0 commit comments

Comments
 (0)