aboutsummaryrefslogtreecommitdiff
path: root/navbar.etlua
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2020-07-05 17:18:56 -0400
committerAlexander Pickering <alex@cogarr.net>2020-07-05 17:18:56 -0400
commite87b06ee0fe2a588b72a356bbb8378899365d626 (patch)
tree0d0acd945a70644835e8958425e6d5e6c10196a6 /navbar.etlua
parentd2ba262c5307aa14c325ef53d8e4e56a5ece0376 (diff)
downloadmdoc-e87b06ee0fe2a588b72a356bbb8378899365d626.tar.gz
mdoc-e87b06ee0fe2a588b72a356bbb8378899365d626.tar.bz2
mdoc-e87b06ee0fe2a588b72a356bbb8378899365d626.zip
Add rockspec
Add a rockspec and move the files around so that luarocks can install it correctly
Diffstat (limited to 'navbar.etlua')
-rw-r--r--navbar.etlua25
1 files changed, 0 insertions, 25 deletions
diff --git a/navbar.etlua b/navbar.etlua
deleted file mode 100644
index 368ea10..0000000
--- a/navbar.etlua
+++ /dev/null
@@ -1,25 +0,0 @@
-<nav>
-<% local sorted_headers = {} %>
-<% for name,_ in pairs(headers) do %>
-<% table.insert(sorted_headers, name) %>
-<% end %>
-<% table.sort(sorted_headers) %>
-<% for _,header in pairs(sorted_headers) do %>
- <% local sections = headers[header] %>
- <h3><%- header %></h3>
- <% local sorted_sections = {} %>
- <% local section_map = {} %>
- <% for _,section in pairs(sections) do %>
- <% table.insert(sorted_sections, section.name) %>
- <% section_map[section.name] = section %>
- <% end %>
- <% table.sort(sorted_sections) %>
- <% print("sections:",sorted_sections) %>
- <ol>
- <% for _,sectionname in ipairs(sorted_sections) do %>
- <% local section = section_map[sectionname] %>
- <li><a href="<%- section.name %>.html"><%- section.name %></a></li>
- <% end %>
- </ol>
-<% end %>
-</nav>