diff options
Diffstat (limited to 'tyrian_sphinx_theme/localtoc.html')
-rw-r--r-- | tyrian_sphinx_theme/localtoc.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tyrian_sphinx_theme/localtoc.html b/tyrian_sphinx_theme/localtoc.html new file mode 100644 index 0000000..2957ad6 --- /dev/null +++ b/tyrian_sphinx_theme/localtoc.html @@ -0,0 +1,12 @@ +{%- if display_toc %} + + <nav class="bs-docs-sidebar" data-spy="affix" data-offset-top="140" data-offset-bottom="400"> + + {%- if builder != "singlehtml" %} + {{ toctree()|replace("caption", "hidden")|replace("<ul>", "<ul class='nav'>")|replace('<ul class="current">', "<ul class='current nav'>")|replace("index.html#", "#") }} + {%- else %} + {{ toc|replace("caption", "hidden")|replace("<ul>", "<ul class='nav'>")|replace("index.html#", "#") }} + {%- endif %} + + </nav> +{%- endif %} |