Skip to content

Commit

Permalink
Nicer navigation bar in the docs (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
GretchenSchowalter authored Apr 29, 2023
1 parent 81adafb commit e42c6b9
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 e42c6b9

Please sign in to comment.