diff --git a/docs/ldoc.ltp b/docs/ldoc.ltp index dda250f29..5d3d9a1b8 100644 --- a/docs/ldoc.ltp +++ b/docs/ldoc.ltp @@ -66,6 +66,57 @@ # if not found then curr = nil end # end +# --------- merge modules content with supermodules ------------- +# local all_module_kinds = {} +# if module then +# for kind,items in module.kinds() do +# local myitems = {} +# for item in items() do +# myitems[#myitems + 1] = item +# end +# all_module_kinds[#all_module_kinds + 1] = { kind = kind, items = myitems } +# end +# local filtered_kinds = { "Constructors", "Static module functions", +# "Functions", "Methods", "lib.gears.object.properties Functions" } +# for supermodule in iter(hierarchy) do +# for kind,items in supermodule.kinds() do +# local ignored = false +# for _,filtered in ldoc.pairs(filtered_kinds) do +# if kind == filtered then +# ignored = true +# break +# end +# end +# if not ignored then +# local curr_kind = nil +# for k in iter(all_module_kinds) do +# if k.kind == kind then +# curr_kind = k +# break +# end +# end +# if not curr_kind then +# curr_kind = { kind = kind, items = {} } +# all_module_kinds[#all_module_kinds + 1] = curr_kind +# end +# for item in items() do +# local tobeadded = true +# for i in iter(curr_kind.items) do +# if item == i then +# tobeadded = false +# break +# end +# end +# if tobeadded then +# item.inherited = true -- force inherited status +# curr_kind.items[#curr_kind.items + 1] = item +# end +# end +# end +# end +# end +# end +