Merge pull request #309 from snide/conf-nav-depth

Add option for navigation depth
This commit is contained in:
Eric Holscher 2016-07-20 12:45:16 -07:00 committed by GitHub
commit f2cfc5b838
2 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,7 @@
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
{% block menu %}
{% set toctree = toctree(maxdepth=4, collapse=theme_collapse_navigation, includehidden=True) %}
{% set toctree = toctree(maxdepth=theme_navigation_depth, collapse=theme_collapse_navigation, includehidden=True) %}
{% if toctree %}
{{ toctree }}
{% else %}

View File

@ -9,3 +9,4 @@ sticky_navigation = False
logo_only =
collapse_navigation = False
display_version = True
navigation_depth = 4