Skip to content

Commit

Permalink
CrateDB Cloud: Collapse navigation items on feature/index page
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 29, 2024
1 parent 97843aa commit 9aa899e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGES

Unreleased
----------
- CrateDB Cloud: Collapse navigation items on ``feature/index`` page

2024/11/26 0.37.1
-----------------
Expand Down
4 changes: 4 additions & 0 deletions src/crate/theme/rtd/crate/sidebartoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
{% if project == 'CrateDB Cloud' %}
<li class="current">
<a class="current-active" href="{{ pathto(master_doc) }}">CrateDB Cloud</a>
{% if pagename == 'feature/index' %}
{{ toctree(maxdepth=0|toint, collapse=True, includehidden=theme_globaltoc_includehidden|tobool) }}
{% else %}
{{ toctree(maxdepth=4|toint, collapse=True, includehidden=theme_globaltoc_includehidden|tobool) }}
{% endif %}
</li>
{% else %}
<li class="navleft-item"><a href="/docs/cloud/">CrateDB Cloud</a></li>
Expand Down

0 comments on commit 9aa899e

Please sign in to comment.