aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2020-07-13 13:07:45 -0400
committerAlexander Pickering <alex@cogarr.net>2020-07-13 13:07:45 -0400
commitee418edf8d7c4cecdf49d397f2a3ae39f0b08181 (patch)
tree1387deadb98cf3a6e576b4e0e8b41cd970f9fcf1
parent7ff0a0752a1092bd07042fb0357a5b571a386648 (diff)
downloadmdoc-ee418edf8d7c4cecdf49d397f2a3ae39f0b08181.tar.gz
mdoc-ee418edf8d7c4cecdf49d397f2a3ae39f0b08181.tar.bz2
mdoc-ee418edf8d7c4cecdf49d397f2a3ae39f0b08181.zip
Don't try to use class in documentation page
The class printed at the top of the page, no need to re-print it in the function documentation.
-rw-r--r--share/page.etlua.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/page.etlua.lua b/share/page.etlua.lua
index c66f865..d939749 100644
--- a/share/page.etlua.lua
+++ b/share/page.etlua.lua
@@ -76,6 +76,8 @@ 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 %>