aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2020-01-18 23:23:38 +0100
committerMax Magorsch <max@magorsch.de>2020-01-18 23:23:38 +0100
commit9b9f0f97d7ab416cd48a11932aaf0ef5f70910a5 (patch)
tree1c69694206673c7a6cb077d053810aa9e423b172 /tyrian_sphinx_theme/localtoc.html
downloadtyrian-sphinx-theme-9b9f0f97d7ab416cd48a11932aaf0ef5f70910a5.tar.gz
tyrian-sphinx-theme-9b9f0f97d7ab416cd48a11932aaf0ef5f70910a5.tar.bz2
tyrian-sphinx-theme-9b9f0f97d7ab416cd48a11932aaf0ef5f70910a5.zip
Initial commit
Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'tyrian_sphinx_theme/localtoc.html')
-rw-r--r--tyrian_sphinx_theme/localtoc.html12
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 %}