You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Documentation: Treat deprecated/experimental members as documented
This commit is contained in:
@@ -279,13 +279,18 @@ class ClassStatus:
|
||||
|
||||
elif tag.tag in ["methods", "signals", "operators", "constructors"]:
|
||||
for sub_tag in list(tag):
|
||||
is_deprecated = "deprecated" in sub_tag.attrib
|
||||
is_experimental = "experimental" in sub_tag.attrib
|
||||
descr = sub_tag.find("description")
|
||||
increment = (descr is not None) and (descr.text is not None) and len(descr.text.strip()) > 0
|
||||
status.progresses[tag.tag].increment(increment)
|
||||
has_descr = (descr is not None) and (descr.text is not None) and len(descr.text.strip()) > 0
|
||||
status.progresses[tag.tag].increment(is_deprecated or is_experimental or has_descr)
|
||||
elif tag.tag in ["constants", "members", "theme_items"]:
|
||||
for sub_tag in list(tag):
|
||||
if not sub_tag.text is None:
|
||||
status.progresses[tag.tag].increment(len(sub_tag.text.strip()) > 0)
|
||||
is_deprecated = "deprecated" in sub_tag.attrib
|
||||
is_experimental = "experimental" in sub_tag.attrib
|
||||
has_descr = len(sub_tag.text.strip()) > 0
|
||||
status.progresses[tag.tag].increment(is_deprecated or is_experimental or has_descr)
|
||||
|
||||
elif tag.tag in ["tutorials"]:
|
||||
pass # Ignore those tags for now
|
||||
|
||||
Reference in New Issue
Block a user