Skip to content

Commit

Permalink
Modify TOC depth
Browse files Browse the repository at this point in the history
  • Loading branch information
betatim committed Apr 25, 2017
1 parent 6609b3a commit f55be0d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions doc/_templates/navigation.html
@@ -0,0 +1,11 @@
<h3>{{ _('Table Of Contents') }}</h3>
{{ toctree(maxdepth=3, collapse=False) }}

{% 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 %}
3 changes: 2 additions & 1 deletion doc/conf.py
Expand Up @@ -160,7 +160,8 @@
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars = {'*': ['navigation.html', 'relations.html',
'sourcelink.html', 'searchbox.html']}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down
1 change: 0 additions & 1 deletion doc/index.rst
Expand Up @@ -70,4 +70,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

0 comments on commit f55be0d

Please sign in to comment.