forked from tomjoht/learnapidoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docapis.ncx
72 lines (59 loc) · 2.5 KB
/
docapis.ncx
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN"
"http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<!--
For a detailed description of NCX usage please refer to:
http://www.idpf.org/2007/opf/OPF_2.0_final_spec.html#Section2.4.1
-->
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="en-US">
<head>
<meta name="dtb:uid" content="BookId"/>
<meta name="dtb:depth" content="2"/>
<meta name="dtb:totalPageCount" content="0"/>
<meta name="dtb:maxPageNumber" content="0"/>
</head>
<docTitle><text>Documenting REST APIs</text></docTitle>
<docAuthor><text>Tom Johnson</text></docAuthor>
{% assign increment = 1 %}
<navMap>
{% assign sidebar = site.data[site.sidebar].folders %}
{% for folder in sidebar %}
<navPoint class="toc" id="item_{{ folder.jurl | remove: "/" | remove: ".html" }}" playOrder="{% increment %}">
<navLabel>
<text>{{ folder.title }}</text>
</navLabel>
<content src="{{ folder.jurl | remove: "/" }}"/>
{% for folderitem in folder.folderitems %}
{% if folderitem.title %}
<navPoint class="toc" id="item_{{ folderitem.jurl | remove: "/" | remove: ".html" }}" playOrder="{% increment %}">
<navLabel>
<text>{{ folderitem.title }}</text>
</navLabel>
<content src="{{ folderitem.jurl | remove: "/" }}"/>
{% endif %}
{% for subfolder in folderitem.subfolders %}
<navPoint class="toc" id="item_{{ subfolder.jurl | remove: "/" | remove: ".html" }}" playOrder="{% increment %}">
<navLabel>
<text> {{ subfolder.title }}</text>
</navLabel>
<content src="{{ subfolder.jurl | remove: "/" }}"/>
{% for subfolderitem in subfolder.subfolderitems %}
{% if subfolderitem.title %}
<navPoint class="toc" id="item_{{ subfolderitem.jurl | remove: "/" | remove: ".html" }}" playOrder="{% increment %}">
<navLabel>
<text>{{ subfolderitem.title }}</text>
</navLabel>
<content src="{{ subfolderitem.jurl | remove: "/" }}"/>
</navPoint>
{% endif %}
{% endfor %}
{% endfor %}
</navPoint>
{% endfor %}
</navPoint>
{% endfor %}
</navMap>
</ncx>