Merge pull request #335 from Carreau/cast-int

Cast maxdepth to an int.
This commit is contained in:
Eric Holscher
2016-11-30 16:06:09 -08:00
committed by GitHub

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=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 %}