diff --git a/docs/config.ld b/docs/config.ld index a0e0a9fb..f5e3d625 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -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