A magical documentation tool for GDScript.
GDScriptify is an API documentation generator tool for GDScript that converts comments you write alongside the code into Markdown documentation files.
It's great for documenting Godot plugins or frameworks. Even for just small one-script projects.
npm install gdscriptify -g
gdscriptify [options]
-h, --help
: Show help menu.-d, --directory path
: Path from which to generate the documentation.
./
).project.godot
file../
.-o, --ouput path
: Path to store the documentation.
--directory
.docs
.-c, --code {true|false}
: Generate a "Code Reference" JSON file to --output
.
false
.-m, --markdown {true|false}
: Generate Markdown files to --output
.
true
.-r, --readme false
: Prevent generating a README
file.
true
.-v, --version
: Show package version.First of all, you have to document the GDScript files.
Once that's done:
gdscriptify
.cd /path/to/your/godot/project
gdscriptify
Or, if you don't want to have to go the folder, you can run gdscriptify
with -d [path]
from anywhere.
gdscriptify -d /path/to/your/godot/project
Assuming GDScriptify's default values are being used, a docs
folder will be created in the root of your Godot's project (where project.godot
or plugin.cfg
is located) with the documentation files.
project
├── another_awesome_script.gd
├── awesome_script.gd
├── docs
│ ├── another_awesome_script.md
│ └── awesome_script.md
├── icon.png
└── project.godot
If there's only 1 GDScript file in the project, GDScriptify will create a README.md
file in the root of your Godot's project.
project
├── awesome_script.gd
├── icon.png
├── project.godot
└── README.md
Check out the documentation on generating a README file to learn how to make it look better.
If you don't want that one file to be converted into a README file, run:
gdscriptify -r false
See CHANGELOG.
Feel free to:
If you find this project helpful, please consider supporting it through any size donations to help make it better.
If you can't, consider sharing it with the world...
... or giving it a star.
Thanks to: