Use local toc if it exists.

This commit is contained in:
Eric Holscher 2013-10-26 16:33:27 -07:00
parent 90d502d0a2
commit d01b8f4201

View File

@ -95,7 +95,12 @@
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix">
{{ toctree(maxdepth=2, collapse=False) }}
{% set toctree = toctree(maxdepth=2, collapse=False) %}
{% if toctree %}
{{ toctree }}
{% else %}
{{ toc }}
{% endif %}
</div>
{% include "versions.html" %}
&nbsp;