The behaviour of gdnative-doc
can be configured via a toml configuration file.
The current options are:
-
Specify a godot version.
Accepted versions are
"3.2"
,"3.3"
,"3.4"
or"3.5"
.Defaults to
"3.5"
.# Use godot 3.3 for class names and documentation linking. godot_version = "3.3"
-
Here you can specify a list of items for which the linking url should be overriden.
# link `bool` to the latest documentation instead. url_overrides = { bool = "https://docs.godotengine.org/en/latest/classes/class_bool.html" }
-
Here you can declare a list of structures that will be renamed.
This is useful because GDNative allows defining a
script_class_name
in the.gdns
file.// in lib.rs #[derive(NativeClass)] #[inherit(Reference)] /// My Rust interface pub struct RustStructure {}
rename_classes = { RustStructure = "GodotClass" }
-
List of optional markdown options.
- FOOTNOTES
- SMART_PUNCTUATION
- STRIKETHROUGH
- TABLES
- TASKLISTS
No option enabled.
markdown_options = ["STRIKETHROUGH", "TABLES", "TASKLISTS"]
-
Boolean that control whether or not to include a comment in the generated files.
The comment includes information such that the file was automatically generated, the name of the source file it originated from...
true
opening_comment = false