> local iter = ldoc.modules.iter > local M = ldoc.markup > local use_li = ldoc.use_li > local no_spaces = ldoc.no_spaces > local display_name = ldoc.display_name > local function remove_parent_obj(obj) > obj = obj:gsub(">Concepts%.(.*)<", ">%1<"):gsub(">Common%.(.*)<", ">%1<") > obj = obj:gsub(">{Concepts%.(.*)}<", ">{%1}<"):gsub(">{Common%.(.*)}<", ">{%1}<") > return obj > end
> if module then| $(m.name) | > if M(ldoc.strip_header(m.summary),m) ~= "" then$(M(ldoc.strip_header(m.summary),m)) | > end
$(M(module.summary))
$(M(module.description))
> if ldoc.body and module.type == "example" then$(ldoc.body:gsub("^(.*%.lua)
(.*)$", "%2"):gsub("(.*)
", "%1"):gsub("^%s*(.-)%s*$", "%1"))
> elseif ldoc.body and module.type == "topic" then
$(M(ldoc.body))
> end
> if module.info then
$(ldoc.prettify(usage))
> end
> end
> if module and module.type ~= "topic" then
> for kind, items in module.kinds() do
| $(display_name(item)) | > if item.summary ~= "" then$(M(item.summary,item)) | > end
$(M(item.summary))
$(M(item.description))
> end > if not ldoc.no_return_or_parms and item.params and #item.params > 0 then > local module_item_subnames = module.kinds:type_of(item).subnames > if module_item_subnames then $(module_item_subnames): > end$(c.name)
($(ldoc.typename(c.type)))
: $(M(c.comment, item))
$(ldoc.prettify(usage))
> end
> end
> end
> end
> else