From 6f92f60076988961011726ba9784ca52a5e274cc Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 28 Nov 2019 18:37:57 -0500 Subject: [PATCH] doc: Add more deprecation related tags. They do nothing for now, but once we are done adding them to everything, they will replace the old `@deprecated` family of type-tags. They carry more information such as when it was removed and why. Cross-referenced with the @version, we can infer the deprecation status based on the current release rather than a boolean "deprecated or not deprecated". --- docs/config.ld | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/config.ld b/docs/config.ld index 05a7cf32f..a80e6e7f9 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -344,6 +344,39 @@ add_custom_tag { hidden = true } +-- Specify when this an item was deprecated. +-- @deprecatedin 4.4 Optional message. +add_custom_tag { + name = "deprecatedin", + hidden = true, + params = { + { name = "api_level" }, + }, +} + +-- Specify when this an item was deprecated because it was renamed. +-- @renamedin 4.4 new_name Optional message. +add_custom_tag { + name = "renamedin", + hidden = true, + params = { + { name = "api_level" }, + { name = "new_name" }, + }, +} + +-- Specify when this an item was deprecated because it was moved. +-- @movedin 4.4 new_class new_name Optional message. +add_custom_tag { + name = "movedin", + hidden = true, + params = { + { name = "api_level" }, + { name = "new_class" }, + { name = "new_name" }, + }, +} + -- More fitting section names kind_names={topic='Documentation', module='Libraries', script='Sample files'}