Add single-level TOC to docs.html
This commit is contained in:
parent
b628194c80
commit
ef9d6fb89e
2 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
|||
---
|
||||
toc:
|
||||
install: Install
|
||||
run: Run
|
||||
---
|
||||
|
||||
## Install
|
||||
|
|
11
docs.html
11
docs.html
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue