summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Ward <ian@excess.org>2014-01-04 18:58:45 -0500
committerIan Ward <ian@excess.org>2014-01-04 18:58:45 -0500
commit7d8d19a4c117220a82f57627d7b972d5441aeb6e (patch)
tree09445025c7245a27009a05817ba30db241eebe38
parentc171672e02fe4d53871eca0cb4d664d911577369 (diff)
downloadurwid-7d8d19a4c117220a82f57627d7b972d5441aeb6e.tar.gz
docs: make sidebar table of contents more consistent
-rw-r--r--docs/tools/templates/localtoc.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/tools/templates/localtoc.html b/docs/tools/templates/localtoc.html
new file mode 100644
index 0000000..0e9bf8a
--- /dev/null
+++ b/docs/tools/templates/localtoc.html
@@ -0,0 +1,18 @@
+{%- if pagename.startswith('manual/') -%}
+ <h3>Table of contents</a></h3>
+ <ul><li><a href="index.html">Manual</a></li>
+ {%- if display_toc -%}
+ {{ toc }}
+ {%- endif %}
+ </ul>
+{%- elif pagename.startswith('reference/') -%}
+ <h3>Table of contents</a></h3>
+ <ul><li><a href="index.html">Reference</a></li>
+ {%- if display_toc -%}
+ {{ toc }}
+ {%- endif %}
+ </ul>
+{%- elif display_toc -%}
+ <h3>Table of contents</a></h3>
+ {{ toc }}
+{% endif %}