diff --git a/ldoc/html.lua b/ldoc/html.lua index ee54e1d..fb8b94c 100644 --- a/ldoc/html.lua +++ b/ldoc/html.lua @@ -176,6 +176,11 @@ function ldoc.source_ref (fun) end function ldoc.default_display_name(item) + -- Project-level items: + if doc.project_level(item.type) then + return ldoc.module_name(item) + end + -- Module-level items: local name = item.display_name or item.name if item.type == 'function' or item.type == 'lfunction' then if not ldoc.no_space_before_args then diff --git a/ldoc/html/ldoc_ltp.lua b/ldoc/html/ldoc_ltp.lua index 07c8a84..e87cbdb 100644 --- a/ldoc/html/ldoc_ltp.lua +++ b/ldoc/html/ldoc_ltp.lua @@ -66,7 +66,7 @@ return [==[ # if ldoc.allowed_in_contents(type,module) then

$(kind)