Add single-level TOC to docs.html

This commit is contained in:
Daniel Rudolf 2015-10-10 00:57:44 +02:00
parent b628194c80
commit ef9d6fb89e
2 changed files with 12 additions and 2 deletions

View file

@ -1,4 +1,7 @@
---
toc:
install: Install
run: Run
---
## Install

View file

@ -13,11 +13,18 @@ nav: 2
</p><br />
<div class="one-fourth">
<!-- ToDo -->
<ul>
{% for doc in site.docs %}
{% for item in doc.toc %}
<li>
<a href="#{{ item[0] }}">{{ item[1] }}</a>
</li>
{% endfor %}
{% endfor %}
</ul>
</div>
<div class="three-fourth last">
{% for doc in site.docs %}
<!-- path = {{ doc.path }} -->
{{ doc.output }}
{% endfor %}