From 50d4e8f04b2a6095d36e91b09b96eaa83b946f96 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 12 Mar 2019 14:36:32 -0400 Subject: [PATCH] doc: Add a deprecated property section. --- docs/config.ld | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/config.ld b/docs/config.ld index 5a264241c..e47df0408 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -53,6 +53,8 @@ tparam_alias('screen_or_idx', 'screen|int') new_type("function", "Functions") -- Documentation for objects properties new_type("property", "Object properties", false, "Type") +-- Documentation for objects deprecated properties +new_type("deprecatedproperty", "Deprecated object properties", false, "Type") -- New type for signals new_type("signal", "Signals", false, "Arguments") -- New type for signals connections @@ -142,7 +144,8 @@ file = { } local no_prefix = { - property = true, signal = true, clientruleproperty = true + property = true, signal = true, clientruleproperty = true, + deprecatedproperty = true, } custom_display_name_handler = function(item, default_handler) @@ -153,7 +156,7 @@ custom_display_name_handler = function(item, default_handler) return name ~= "" and name or item.name end - if item.type == "deprecated" then + if item.type == "deprecated" or item.type == "deprecatedproperty" then return default_handler(item) .. " [deprecated]" end