mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Use local toc if it exists.
This commit is contained in:
parent
90d502d0a2
commit
d01b8f4201
|
@ -95,7 +95,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wy-menu wy-menu-vertical" data-spy="affix">
|
<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>
|
</div>
|
||||||
{% include "versions.html" %}
|
{% include "versions.html" %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user