mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue