Skip to main content

GDScript reStructuredText Docs Maker

gdscript2rest is a tool to document your Godot gdscript files into reStructuredText (.rst) files and to create an index of the generated files if required.

The code is based on the gdscript-docs-maker code from GDQuest and, in as far as the initial stages of the conversion are concerned, it is a direct copy of their code with a few notable exceptions:

  • This version only provides reStructuredText (.rst) output - if you require markdown or Hugo output then please follow the above link and use the original version.
  • As there is no facility to create markdown or Hugo files the -f/--format and -a/--author options in the original are no longer available.
  • Multi-line comments in the code are concatenated to single line comments unless there are multiple line breaks, in which case the line breaks are preserved. This is to give, hopefully, a better flow of the description text.

Usage

A JSON file of the Godot projects docstrings has to be created first using either the generate-reference script on homepage or the original at gdscript-docs-maker code. Both locations have instructions on how to do this.

Once the JSON file has been created then the reStructuredText documents can be created by running

python -m gdscript2rest [options] $JSON-dump.json

where $JSON-dump.json is the file created by generate-reference.

The above command will generate the files required and place them in a folder called export that is a sub folder of the Current Working Directory.

Running

python3 -m gdscript2rest -h

will give full program usage with detailing options for tailoring the output location and generating an index file.

My Homepage has full instructions, a mini tutorial wiki's as well as a wiki on creating a Sphinx based webpage of your Games API.

Don't hesitate to raise issues or ask questions and if you like this tool then please spread the word!

Metadata

Release files for gdscript2rest 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gdscript2rest 0.5.0
File Size Uploaded Provenance Actions
gdscript2rest-0.5.0.tar.gz 15.8 kB Without provenance Details for gdscript2rest-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gdscript2rest 0.5.0
File Interpreter ABI Platform Actions
gdscript2rest-0.5.0-py3-none-any.whl Python 3 none any Details for gdscript2rest-0.5.0-py3-none-any.whl

Total release size: 32.6 kB

Release files / gdscript2rest-0.5.0.tar.gz

Download URL gdscript2rest-0.5.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cd08b01b83efc72e13ab307fd5f7009818e4a369f254e860da0b2776d41ef069
BLAKE2b-256 checksum
How to use checksums
cdcce0213208e3756ccecaaee8738995e63eb198f24216b48d4673777ed70aad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / gdscript2rest-0.5.0-py3-none-any.whl

Download URL gdscript2rest-0.5.0-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45872f34e20d2c0e9584e9066b3ebeeaedf2bde071dcc3abb5cb8529b0fc33f7
BLAKE2b-256 checksum
How to use checksums
774f91247afe12ec22973e63033ca5fe564a6360184e41f68e5acd03e5bbb097
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for gdscript2rest 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page