mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
don't hide depth 2 when local toc tree
This commit is contained in:
parent
f97e9f3a6c
commit
bc4ef78ddb
@ -73,6 +73,9 @@
|
|||||||
li ul
|
li ul
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
display: none
|
display: none
|
||||||
|
.local-toc
|
||||||
|
li ul
|
||||||
|
display: block
|
||||||
li ul li a
|
li ul li a
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
color: $text-light
|
color: $text-light
|
||||||
|
@ -104,11 +104,11 @@
|
|||||||
{% set toctree = toctree(maxdepth=2, collapse=False) %}
|
{% set toctree = toctree(maxdepth=2, collapse=False) %}
|
||||||
{% if not next and not prev %}
|
{% if not next and not prev %}
|
||||||
<!-- Local TOC for single page -->
|
<!-- Local TOC for single page -->
|
||||||
{{ toc }}
|
<div class="local-toc">{{ toc }}</div>
|
||||||
{% elif toctree %}
|
{% elif toctree %}
|
||||||
{{ toctree }}
|
{{ toctree }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ toc }}
|
<div class="local-toc">{{ toc }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user