aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mdoc-dev-1.rockspec2
-rw-r--r--share/page.etlua.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/mdoc-dev-1.rockspec b/mdoc-dev-1.rockspec
index 24b4a15..35ce0a7 100644
--- a/mdoc-dev-1.rockspec
+++ b/mdoc-dev-1.rockspec
@@ -2,7 +2,7 @@ package = "mdoc"
version = "dev-1"
source = {
url = "git+https://cogarr.net/source/cgit.cgi/mdoc",
- tag = "v1.0"
+ tag = "v1.1"
}
description = {
summary = "A documentation tool for Lua",
diff --git a/share/page.etlua.lua b/share/page.etlua.lua
index d939749..b1bad23 100644
--- a/share/page.etlua.lua
+++ b/share/page.etlua.lua
@@ -66,6 +66,7 @@ return [[
<% local func_sec = assert(et.compile(require("mdoc.files.func"))) %>
<% for _, funcname in ipairs(funcorder) do %>
<% local data = header[funcname] %>
+ <% if not data.type then goto nextfunc end %>
<% if data.type == "method" or data.type == "function" then %>
<%- assert(func_sec{
name = funcname,
@@ -76,16 +77,15 @@ return [[
<h4><%- funcname %></h4>
<p><%- data.desc or "" %>
<hr>
- <% elseif data.type == "class" then %>
- --Do nothing, classes are already at the top of the page.
<% else %>
<% if funcname ~= "name" and funcname ~= "type" then %>
- <p>Unknown field type: <%- data and data.type or "" %> for <%- funcname %>
+ <p>Unknown field type: <%- data.type or "" %> for <%- funcname %>
<p><%- tostring(data) %>
<p><%- tostring(header) %>
<hr>
<% end %>
<% end %>
+ <% ::nextfunc:: %>
<% end %>
<% end %>
</article>