Module: $(module.name)
$(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(un_cmake(usage)))$(il) # end -- for # end -- if usage
# if module.tags.supermodule then
# end -- module.tags.supermodule
# if module.tags.include then
$(M(ldoc.include_file(module.tags.include)))
# end
# if module.info then
# end -- if module.info
# if module.see then
# if not ldoc.no_summary then
# -- bang out the tables of item types for this module (e.g Functions, Tables, etc)
# local last_kind = ""
# for k in iter(all_module_kinds) do
# local kind = k.kind
# if not kind:match("^ldoc_skip") then
# if last_kind ~= "" then
# end
Class Hierarchy
# local function draw_hierary_recursifly(i)
# local is_root_level = (i == #hierarchy)
- # local mod = hierarchy[i] # local name = display_name(hierarchy[i]) # if mod == module then $(name) # else $(name) # end # if i > 1 then
- # draw_hierary_recursifly(i - 1) # end
Info:
-
# for tag, value in module.info:iter() do
# if tag == 'Author' then
-
Originally authored by: $(M(value,module))
(Full contributors list available on our github project)
# else
- $(tag): $(M(value,module)) # end # end
# local li,il = use_li(module.see)
# local list_or_p =(#module.see > 1) and 'ul' or 'p'
# end -- if module.see
See also:
<$(list_or_p)> # for see in iter(module.see) do $(li)$(see.label)$(il) # end -- for $(list_or_p)>$(kind)
$(dn) | $(item.display_type) | # else$(dn) # if item.display_type and item.compact_signature then $(item.display_type) # end | # end$(M(item.summary,item)) | # if item.tags.is_deprecated then Deprecated # end # if item.tags.readonly then Read only # end # if inherited then Inherited from $(item.baseclass) # end |
#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, last_kind = show_return, "" # for k in iter(all_module_kinds) do # local kind = k.kind # local kitem = module.kinds:get_item(kind) # local has_description = kitem and ldoc.descript(kitem) ~= "" # if not kind:match("^ldoc_skip") then # if last_kind ~= "" then # end
$(kind)
# end $(M(module.kinds:get_section_description(kind),nil)) # if kitem then # if has_description then
$(M(ldoc.descript(kitem),kitem))
# end
# if kitem.usage then
Usage:
$(ldoc.prettify(un_cmake(kitem.usage[1])))# end # end # if not kind:match("^ldoc_skip") then
-
# end
# for item in iter(k.items) do if not item.tags.hidden then
- $(display_name(item)) # if item.display_inheritance then · Inherited from $(item.display_inheritance) # end -- display_inheritance # if item.display_type then $(item.display_type) # end # if item.baseclass ~= module.name then · Inherited from $(M(item.baseclass, item)) # end # if item.extra_summary then # for _, col in ldoc.ipairs(item.extra_summary) do · $((col.showcount and col.count.." " or "")..col.title) # end -- summary col # end -- summary # if ldoc.prettify_files and ldoc.is_file_prettified[item.module.file.filename] then line $(item.lineno) # end
-
$(M(ldoc.descript(item),item))
# if show_parms and item.params and #item.params > 0 and not item.hide_params then
# local subnames = module.kinds:type_of(item).subnames
# if subnames then
$(subnames):
# end-
# for parm in iter(item.params) do
# local param,sublist = item:subparam(parm)
# if sublist then
- $(sublist)$(M(item.params.map[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.map[p],item))
# if def == true then
(optional)
# elseif def then
(default
$(def)
) # end # if item:readonly(p) then readonly # end
# end
# if sublist then
- $(name)
# if tp ~= '' then
$(tp)
# end
$(M(item.params.map[p],item))
# if def == true then
(optional)
# elseif def then
(default
Returns:
# for i,group in ldoc.ipairs(groups) do local li,il = use_li(group)-
# for r in group:iter() do local type, ctypes = item:return_type(r); local rt = ldoc.typename(type)
$(li)
# if rt ~= '' then
$(rt)
# end
$(M(r.text,item))$(il)
# if ctypes then
- $(c.name) $(ldoc.typename(c.type)) $(M(c.comment,item)) # end
-
# for c in ctypes:iter() do
Or
# end # end -- for group # end -- if returns # if show_return and item.raise thenRaises:
$(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(un_cmake(usage)))
$(il) # end -- for # end -- if usage # if item.has_show_more then
Click to display more # end # if ldoc.custom_tags then # for custom in iter(ldoc.custom_tags) do # local tag = item.tags[custom[1]] # if tag and not custom.hidden then # local group_begin, group_end, row_type_begin, row_type_end, group_header = item.get_delim(custom[1])$(custom.title or custom[1]):
<$(group_begin)> # if group_header then# for _, g in ldoc.ipairs(group_header) do # end -- if group_header then # for value in iter(tag) do <$(row_type_begin)>$(custom.format and custom.format(value, item, M) or M(value))$(row_type_end)> # local sub_values, sub_custom = item.get_auto_params(custom[1], value) # if sub_values then$(g) # end -- for g-
# for _, value in ldoc.ipairs(sub_values) do
- $(sub_custom.format(value, item, M)) # end -- for auto_params
# end end -- for items
# last_kind = kind
# end -- for kinds
- $(sublist)$(M(item.params.map[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(ldoc.strip_header(m.summary),m)) |