From ee418edf8d7c4cecdf49d397f2a3ae39f0b08181 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 13 Jul 2020 13:07:45 -0400 Subject: 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. --- share/page.etlua.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share/page.etlua.lua') 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 [[

<%- funcname %>

<%- data.desc or "" %>


+ <% elseif data.type == "class" then %> + --Do nothing, classes are already at the top of the page. <% else %> <% if funcname ~= "name" and funcname ~= "type" then %>

Unknown field type: <%- data and data.type or "" %> for <%- funcname %> -- cgit v1.2.3-70-g09d2