Godot Version
4.6.1
Question
I’m working on some scripts to generate gdextension documentation from inline comments in the source code.
I have most of the class documentation completed and now want to automate generating the rst files. I was using this as a guide:
So i grabbed the two files listed in the documentation. Turned out make_rst had another dependency so I downloaded that as well (color.py). I got it running but it doesn’t generate any documentation, as it says there are errors in the class XML but the class documentation works fine in the editor.
Screenshot Editor:
Note Object, Node, Sprite2D, and Resource are fine, but notice the error messages for them.
Partial Error List:
ERROR: Summator.xml: Unrecognized opening tag “[Object]” in class “Summator” description.
ERROR: Summator.xml: Unrecognized opening tag “[Node]” in class “Summator” description.
ERROR: Summator.xml: Unrecognized opening tag “[Sprite2D]” in class “Summator” description.
ERROR: Summator.xml: Unrecognized opening tag “[Resource]” in class “Summator” description.
ERROR: Summator.xml: Unresolved type “int”.
ERROR: Summator.xml: Unresolved type “int”.
ERROR: TrafficLight.xml: Unrecognized opening tag “" in class “TrafficLight” description.
ERROR: TrafficLight.xml: Unrecognized closing tag "” in class “TrafficLight” description.
ERROR: TrafficLight.xml: Unrecognized opening tag “[Object]” in class “TrafficLight” description.
ERROR: TrafficLight.xml: Unrecognized opening tag “[Node]” in class “TrafficLight” description.
ERROR: TrafficLight.xml: Unrecognized opening tag “[Sprite2D]” in class “TrafficLight” description.
ERROR: TrafficLight.xml: Unrecognized opening tag “[Resource]” in class “TrafficLight” description.
ERROR: TrafficLight.xml: Unresolved type “Texture2D”.
ERROR: TrafficLight.xml: Unresolved type “Texture2D”.
ERROR: TrafficLight.xml: Unresolved type “Texture2D”.
Does anyone have any idea what the problem is?
