#Issues generating docs with `--gdscript-docs`

4 messages · Page 1 of 1 (latest)

tidal shore
#

Hello! I have been trying to auto generate docs for the Godot Mod Loader, but with no luck.

Upon trying to run godot --headless --doctool --gdscript-docs . I get errors about compilation failing on some scripts as ModLoaderStore isn't defined. This makes total sense, these are autoloads and I haven't created a project.godot yet. So I did so, adding in the lines

[autoload]
ModLoaderStore="*res://addons/mod_loader/mod_loader_store.gd"
ModLoader="*res://addons/mod_loader/mod_loader.gd"
```Still no luck and the same errors. Here is a screenshot of the output if that helps any
#

Maybe my question is more about how to run --gdscript-docs and have it be aware of autoloads?

#

I have read trough the CLI docs of Godot and I haven't seen anything hint to a solution here. Any help is greatly appreciated!

#

Oh! I will also mention that loading the project in Godot and running a test scene everything works as expected, so I assume the autoloads are fine