Skip to content

Commit

Permalink
Merge pull request #309 from snide/conf-nav-depth
Browse files Browse the repository at this point in the history
Add option for navigation depth
  • Loading branch information
ericholscher committed Jul 20, 2016
2 parents 9d4cbf2 + 9230829 commit f2cfc5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/layout.html
Expand Up @@ -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 %}
Expand Down
1 change: 1 addition & 0 deletions sphinx_rtd_theme/theme.conf
Expand Up @@ -9,3 +9,4 @@ sticky_navigation = False
logo_only =
collapse_navigation = False
display_version = True
navigation_depth = 4

0 comments on commit f2cfc5b

Please sign in to comment.