Skip to content

Commit

Permalink
reduced max depth of toc in sidebar from 4 to 2 in navigation.hmtl
Browse files Browse the repository at this point in the history
  • Loading branch information
GretchenSchowalter committed Apr 24, 2023
1 parent 565b69c commit 5c3e84b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions doc/source/_templates/navigation.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!-- this is a hard override because alabaster does not have an option
to set the tocdepth in the navigation sidebar,
see https://github.com/bitprophet/alabaster/issues/89 -->

<h3>{{ _('Navigation') }}</h3>
{{ toctree(maxdepth=4, includehidden=theme_sidebar_includehidden, collapse=theme_sidebar_collapse) }}
{% if theme_extra_nav_links %}
<hr />
<ul>
{% for text, uri in theme_extra_nav_links.items() %}
<li class="toctree-l1"><a href="{{ uri }}">{{ text }}</a></li>
{% endfor %}
</ul>
{% endif %}
<!-- this is a hard override because alabaster does not have an option
to set the tocdepth in the navigation sidebar,
see https://github.com/bitprophet/alabaster/issues/89 -->

<h3>{{ _('Navigation') }}</h3>
{{ toctree(maxdepth=2, includehidden=theme_sidebar_includehidden, collapse=theme_sidebar_collapse) }}
{% if theme_extra_nav_links %}
<hr />
<ul>
{% for text, uri in theme_extra_nav_links.items() %}
<li class="toctree-l1"><a href="{{ uri }}">{{ text }}</a></li>
{% endfor %}
</ul>
{% endif %}

0 comments on commit 5c3e84b

Please sign in to comment.