As the title says, I'm trying to figure out if there is a way to auto-generate such files.
Got an answer to my question over in the Godot sub-Reddit. Much thanks to /u/vnen for pointing me in the right direction.
You need to add the function in your config.py to register the doc path and classes. Then you can use godot --doctool . to generate the XML. It's in docs if you need more details: https://docs.godotengine.org/en/latest/development/cpp/custom_modules_in_cpp.html#writing-custom-documentation
You need to add the function in your config.py to register the doc path and classes. Then you can use godot --doctool . to generate the XML.
It's in docs if you need more details: https://docs.godotengine.org/en/latest/development/cpp/custom_modules_in_cpp.html#writing-custom-documentation