diff options
author | Jakob Unterwurzacher | 2015-12-20 14:13:19 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-12-20 14:13:19 +0100 |
commit | f419d49d65fc638fd15b603364b2e8e92609da91 (patch) | |
tree | d961a056f3c430f508da7c8a1633ed96310dc270 /xreadthedocs/toc.html |
copy /usr/lib/python2.7/site-packages/mkdocs/themes/readthedocs
Diffstat (limited to 'xreadthedocs/toc.html')
-rw-r--r-- | xreadthedocs/toc.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xreadthedocs/toc.html b/xreadthedocs/toc.html new file mode 100644 index 0000000..6cd2fc9 --- /dev/null +++ b/xreadthedocs/toc.html @@ -0,0 +1,23 @@ +{% if nav_item.children %} + <ul class="subnav"> + <li><span>{{ nav_item.title }}</span></li> + + {% for nav_item in nav_item.children %} + {% include 'toc.html' %} + {% endfor %} + </ul> +{% else %} + <li class="toctree-l1 {% if nav_item.active%}current{%endif%}"> + <a class="{% if nav_item.active%}current{%endif%}" href="{{ nav_item.url }}">{{ nav_item.title }}</a> + {% if nav_item == current_page %} + <ul> + {% for toc_item in toc %} + <li class="toctree-l3"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li> + {% for toc_item in toc_item.children %} + <li><a class="toctree-l4" href="{{ toc_item.url }}">{{ toc_item.title }}</a></li> + {% endfor %} + {% endfor %} + </ul> + {% endif %} + </li> +{% endif %} |