1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Dump API docs from inline GDScript comments using --doctool --gdscript-docs PATH

This commit is contained in:
David Snopek
2023-04-26 16:32:03 -05:00
parent 26fb911f79
commit a64137d5dd
5 changed files with 95 additions and 19 deletions

View File

@@ -239,6 +239,7 @@ void GDScriptDocGen::generate_docs(GDScript *p_script, const GDP::ClassNode *p_c
DocData::ConstantDoc const_doc;
const_doc.name = val.identifier->name;
const_doc.value = String(Variant(val.value));
const_doc.is_value_valid = true;
const_doc.description = val.doc_description;
const_doc.enumeration = name;