doc: Use the newer LDoc ability to use special handler for objects types

The `@signal` and `@property` are now correctly rendered. The need for
the extra `.` in front of the signal is no longer needed.
This commit is contained in:
Emmanuel Lepage Vallee 2018-05-28 13:59:22 -04:00
parent 4e17cc6bfc
commit 0a2b05dfbb
1 changed files with 11 additions and 0 deletions

View File

@ -132,4 +132,15 @@ file = {
} }
} }
custom_display_name_handler = function(item, default_handler)
-- Remove the "namespace" from the signals and properties
if item.type == "property" or item.type == "signal" then
local name = item.name:match("%.([^.]+)$")
return name ~= "" and name or item.name
end
return default_handler(item)
end
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80