mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06: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">
|
<div class="wy-menu wy-menu-vertical" data-spy="affix">
|
||||||
{% set toctree = toctree(maxdepth=2, collapse=False) %}
|
{% set toctree = toctree(maxdepth=2, collapse=False) %}
|
||||||
{% if not next and not prev %}
|
{% if toctree %}
|
||||||
<!-- Local TOC for single page -->
|
|
||||||
<div class="local-toc">{{ toc }}</div>
|
|
||||||
{% elif toctree %}
|
|
||||||
{{ toctree }}
|
{{ toctree }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="local-toc">{{ toc }}</div>
|
<!-- Local TOC -->
|
||||||
|
<div class="local-toc">{{ toc }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user