blob: 0fe365202e83511c7a28455e95f599e4e80fdbe4 (
plain)
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
|
<%
if module_doc then
from = "modules/"..module_doc.name
elseif file_doc then
from = "files/.."..file_doc.name
else
from = ""
end
%>
<h1>LuaDoc</h1>
<ul>
<%if not module_doc and not file_doc then%>
<li><strong>Index</strong></li>
<%else%>
<li><a href="<%=luadoc.doclet.html.link("index.html", from)%>">Index</a></li>
<%end%>
</ul>
<!-- Module list -->
<%if not options.nomodules and #doc.modules > 0 then%>
<h1>Modules</h1>
<ul>
<%for _, modulename in ipairs(doc.modules) do
if module_doc and module_doc.name == modulename then%>
<li><strong><%=modulename%></strong></li>
<%else%>
<li>
<a href="<%=luadoc.doclet.html.module_link(modulename, doc, from)%>"><%=modulename%></a>
</li>
<% end
end%>
</ul>
<%end%>
<!-- File list -->
<%if not options.nofiles and #doc.files > 0 then%>
<h1>Files</h1>
<ul>
<%for _, filepath in ipairs(doc.files) do
if file_doc and file_doc.name == filepath then%>
<li><strong><%=filepath%></strong></li>
<%else%>
<li>
<a href="<%=luadoc.doclet.html.file_link(filepath, from)%>"><%=filepath%></a>
</li>
<% end
end%>
</ul>
<%end%>
|