summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2024-09-04 10:54:50 +0300
committerDanil Alexeev <danil@alexeev.xyz>2024-09-04 17:49:05 +0300
commit2dd043d1f615cfe054c3333319a6e1862955bfee (patch)
tree2c0be3e04f5f5121c78e7994270b72d2648763c7 /core
parente2dd56bea7a1aa13fe74fd6eac049e4cbde0434c (diff)
downloadredot-engine-2dd043d1f615cfe054c3333319a6e1862955bfee.tar.gz
Docs: Add missing deprecated/experimental tag support for theme items
Diffstat (limited to 'core')
-rw-r--r--core/doc_data.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/core/doc_data.h b/core/doc_data.h
index 04bd55eaba..6a7f4355db 100644
--- a/core/doc_data.h
+++ b/core/doc_data.h
@@ -522,6 +522,10 @@ public:
String type;
String data_type;
String description;
+ bool is_deprecated = false;
+ String deprecated_message;
+ bool is_experimental = false;
+ String experimental_message;
String default_value;
String keywords;
bool operator<(const ThemeItemDoc &p_theme_item) const {
@@ -550,6 +554,16 @@ public:
doc.description = p_dict["description"];
}
+ if (p_dict.has("deprecated")) {
+ doc.is_deprecated = true;
+ doc.deprecated_message = p_dict["deprecated"];
+ }
+
+ if (p_dict.has("experimental")) {
+ doc.is_experimental = true;
+ doc.experimental_message = p_dict["experimental"];
+ }
+
if (p_dict.has("default_value")) {
doc.default_value = p_dict["default_value"];
}
@@ -579,6 +593,14 @@ public:
dict["description"] = p_doc.description;
}
+ if (p_doc.is_deprecated) {
+ dict["deprecated"] = p_doc.deprecated_message;
+ }
+
+ if (p_doc.is_experimental) {
+ dict["experimental"] = p_doc.experimental_message;
+ }
+
if (!p_doc.default_value.is_empty()) {
dict["default_value"] = p_doc.default_value;
}