Added basic table of contents

This commit is contained in:
Tom Christie
2014-01-19 13:41:55 +00:00
parent 668990e46b
commit fda4825efd
2 changed files with 11 additions and 7 deletions

View File

@@ -58,12 +58,16 @@
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
{% if toctree %}
{{ toctree }}
{% else %}
<!-- Local TOC -->
<div class="local-toc">{{ toc }}</div>
{% endif %}
<ul class="nav bs-sidenav">
{% for toc_item in toc %}
<li class="main {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% for toc_item in toc_item.children %}
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% endfor %}
{% endfor %}
</ul>
</div>
&nbsp;
</nav>

File diff suppressed because one or more lines are too long