$(ldoc.module_typename(module)) $(module.name)
# end
# if ldoc.body then -- verbatim HTML as contents; 'non-code' entries
$(ldoc.body)
# elseif module then -- module documentation
$(M(module.summary,module))
$(M(module.description,module))
# if module.usage then # local li,il = use_li(module.usage)Usage:
-
# for usage in iter(module.usage) do
$(li)
$(ldoc.escape(usage))$(il) # end -- for # end -- if usage # if module.info then
Info:
-
# for tag, value in ldoc.pairs(module.info) do
- $(tag): $(M(value,module)) # end
$(kind)
$(display_name(item)) | $(M(item.summary,item)) |
#end -- if not no_summary # --- currently works for both Functions and Tables. The params field either contains # --- function parameters or table fields. # local show_return = not ldoc.no_return_or_parms # local show_parms = show_return # for kind, items in module.kinds() do # local kitem = module.kinds:get_item(kind)
$(kind)
#-- $(M(module.kinds:get_section_description(kind),nil)) # if kitem then $(M(ldoc.descript(kitem),kitem)) # if kitem.usage thenUsage:
$(ldoc.prettify(kitem.usage[1]))# end # end
-
# for item in items() do
- $(display_name(item))
-
$(M(ldoc.descript(item),item))
# if show_parms and item.params and #item.params > 0 then
$(module.kinds:type_of(item).subnames):
-
# for parm in iter(item.params) do
# local param,sublist = item:subparam(parm)
# if sublist then
- $(sublist)$(M(item.params[sublist],item))
-
# end
# for p in iter(param) do
# local name,tp,def = item:display_name_of(p), ldoc.typename(item:type_of_param(p)), item:default_of_param(p)
- $(name) # if tp ~= '' then $(tp) # end $(M(item.params[p],item)) # if def then (default $(def)) # end # end # if sublist then
Returns:
-
# for i,r in ldoc.ipairs(item.ret) do
$(li)
# local tp = ldoc.typename(item:type_of_ret(i))
# if tp ~= '' then
$(tp)
# end
$(M(r,item))$(il)
# end -- for
Raises:
$(M(item.raise,item)) # end # if item.see then # local li,il = use_li(item.see)See also:
-
# for see in iter(item.see) do
$(li)$(see.label)$(il)
# end -- for
Usage:
-
# for usage in iter(item.usage) do
$(li)
$(ldoc.prettify(usage))
$(il) # end -- for # end -- if usage
# end -- for items
- $(sublist)$(M(item.params[sublist],item))
$(M(ldoc.description,nil))
# end # if ldoc.full_description then$(M(ldoc.full_description,nil))
# end # for kind, mods in ldoc.kinds() do$(kind)
# kind = kind:lower()$(m.name) | $(M(m.summary,m)) |