forked from tomjoht/learnapidoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
toc.html
executable file
·46 lines (40 loc) · 1.73 KB
/
toc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: Table of Contents
permalink: /toc.html
---
{% assign sidebar = site.data[site.sidebar].folders %}
<ul id="docnavsidebar" class="docnav">
{% for folder in sidebar %}
<li class="level1"><a href="{{folder.jurl | remove: "/"}}">{{ folder.title }}</a>
<ul>
{% for folderitem in folder.folderitems %}
{% if folderitem.title %}
<li class="level1items"><a href="{{ folderitem.jurl | remove: "/" }}">{{folderitem.title}}</a></li>
{% endif %}
{% for subfolder in folderitem.subfolders %}
<li class="level2"><a href="{{subfolder.jurl | remove: "/"}}">{{ subfolder.title }}</a>
<ul>
{% for subfolderitem in subfolder.subfolderitems %}
{% if subfolderitem.title %}
<li class="level2items"><a href="{{ subfolderitem.jurl | remove: "/" }}">{{subfolderitem.title}}</a></li>
{% endif %}
{% for subsubfolder in subfolderitem.subsubfolders %}
<li class="level3"><a href="{{subsubfolder.jurl | remove: "/"}}">{{ subsubfolder.title }}</a>
<ul>
{% for subsubfolderitem in subsubfolder.subsubfolderitems %}
{% if subsubfolderitem.title %}
<li class="level3items"><a href="{{ subsubfolderitem.jurl | remove: "/" }}">{{subsubfolderitem.title}}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
{% endfor %}
</ul>
</li>
{% endfor %}
{% endfor %}
</ul>
{% endfor %}
</li>
</ul>