Skip to content

Commit

Permalink
Cast maxdepth to an int.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Oct 17, 2016
1 parent 454aa28 commit 56e4e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/layout.html
Original file line number Diff line number Diff line change
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=theme_navigation_depth, collapse=theme_collapse_navigation, includehidden=True) %}
{% set toctree = toctree(maxdepth=theme_navigation_depth|int, collapse=theme_collapse_navigation, includehidden=True) %}
{% if toctree %}
{{ toctree }}
{% else %}
Expand Down

0 comments on commit 56e4e4c

Please sign in to comment.