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:
parent
4e17cc6bfc
commit
0a2b05dfbb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue