mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Use local toc for single page docs
This commit is contained in:
parent
89ee37350e
commit
b40420daae
|
@ -102,7 +102,10 @@
|
||||||
|
|
||||||
<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 toctree %}
|
{% if not next and not prev %}
|
||||||
|
<!-- Local TOC for single page -->
|
||||||
|
{{ toc }}
|
||||||
|
{% elif toctree %}
|
||||||
{{ toctree }}
|
{{ toctree }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ toc }}
|
{{ toc }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user