-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nicer navigation bar in the docs (#238)
- Loading branch information
1 parent
81adafb
commit e42c6b9
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |