This document lists new features, improvements, changes, and bug fixes in every GDScript docs maker release.
- Fix windows batch file when godot is in a path with spaces
- Falls back on script path when the class_name is not set
- Rename dist to export in windows batch file
- Create an index page with a table of contents. To do so, use the new
command-line option
--make-index. This generates an extraindex.mdfile. - Store key project information: name, description, and human-readable version string.
- We get them from the Application Settings in your Godot project.
- For the project version, in 3.2.0, you need to add it yourself as
application/config/version. It must be with the form "1.0.0". Future or more recent Godot versions should have this defined by default. Upon exporting your game, Godot should also use this version number.
- Add support for the class
categorymetadata: this allows you to group classes by categories. Add a line with# category: My Categoryin your class's docstring to register a category for it.
- Changed the default export directory to "export", as we use "dist" to build the program's pip package itself.
- Move the pip package's configuration to
setup.cfg.- The setup now automatically finds packages and data.
- This improves type checks and imports with mypy.
- The tool now outputs regular markdown code blocks instead of hugo shortcodes by default.
- The
Collector.gdscript you can run from Godot's editor now rebuilds the language server cache so you don't need to restart Godot to rebuild the JSON class data. - Fixed an error in markdown conversion when the Godot Language Server generates empty classes in the generated JSON file.
- If a class doesn't have a name, docs maker will now skip it.
In development
- Add code highlighting to the
hugooutput format. - Add
--dateand--authorcommand line flags for the hugo front matter output. - Add support for the
abstracttag, for abstract base classes. - Add GDScript code highlighting for the hugo export format.
- Add support for enums.
- The documents now only have 1 empty line betweens paragraphs, headings, etc. instead of 2 to 4.
- New output format for the static website engine hugo with toml front-matter. Use the
--format hugooption to select it. - New
--dry-runcommand-line option to output debug information.
- Use code blocks for functions instead of inline code.
This is the initial release of the program. It can collect and generate a code reference from your Godot GDScript projects.
- Parses and collects docstrings from GDScript files, using Godot 3.2's Language Server. Outputs the data as JSON.
- Converts the JSON data to markdown files.
- Writes methods, static functions, signals, member variables, and class data.
- Only writes relevant sections. For example, the tool only creates a "Method Descriptions" section if there are methods in the class.
- Skips built-in callbacks, i.e.
_process,_input, etc. - Skips the constructor,
_init, unless it has arguments. - Skips private functions and member variables, unless tagged as virtual.
- Supports tags in the source code with the
tags:keyword followed by comma-separated strings, liketags: virtual, deprecated.- Currently, the program only takes
virtualinto account, but it does store all the tags.
- Currently, the program only takes
- There are two shell scripts for POSIX shells (sh, bash, etc.) and Windows CMD, respectively. Use them to generate your code reference instantly.