mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Use local toc if it exists.
This commit is contained in:
parent
90d502d0a2
commit
d01b8f4201
@ -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" %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user