mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Turns out Sphinx has lots of single pages we want tocs on
This commit is contained in:
parent
bc4ef78ddb
commit
e82ee4f1f7
|
@ -102,13 +102,11 @@
|
|||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix">
|
||||
{% set toctree = toctree(maxdepth=2, collapse=False) %}
|
||||
{% if not next and not prev %}
|
||||
<!-- Local TOC for single page -->
|
||||
<div class="local-toc">{{ toc }}</div>
|
||||
{% elif toctree %}
|
||||
{% if toctree %}
|
||||
{{ toctree }}
|
||||
{% else %}
|
||||
<div class="local-toc">{{ toc }}</div>
|
||||
<!-- Local TOC -->
|
||||
<div class="local-toc">{{ toc }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user