Contribute DocumentationΒΆ

Thunder Engine documentation is an open project, and we welcome community contributions. This section contains guides on contributing to the documentation, style guidelines, and the review process.

OverviewΒΆ

Thunder Engine documentation is written in reStructuredText (RST) format and built using Sphinx. All documentation files are located in the thunder-engine/thunder-doc repository.

Ways to ContributeΒΆ

You can contribute in several ways:

  • Fix typos and errors β€” the easiest way to help

  • Expand existing sections β€” add examples, clarify descriptions

  • Create new documentation β€” for missing features or components

  • Translations β€” help with translating to other languages

  • Reviews β€” review pull requests from other contributors

Getting StartedΒΆ

  1. Clone the repository

    git clone https://github.com/thunder-engine/thunder-doc.git
    cd thunder-doc
    
  2. Install build tools

    pip install sphinx sphinx-rtd-theme m2r2
    
  3. Build the documentation locally

    make html
    
    # Or on Windows
    .\make.bat html
    

    The build result will be in the _build/html/ folder. Open index.html in your browser to view it.

  4. Create a branch for your changes

    git checkout -b docs/my-improvements
    
  5. Make changes and submit a pull request

    git add .
    git commit -m "docs: description of your changes"
    git push origin docs/my-improvements
    

Documentation StructureΒΆ

The documentation is organized in the following structure:

thunder-doc/
β”œβ”€β”€ make.bat
β”œβ”€β”€ Makefile
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ locales/                 # Translations (gettext)
β”œβ”€β”€ _build/                  # Generated output (ignored)
└── source/                  # Sphinx sources and content
   β”œβ”€β”€ index.rst            # Main page
   β”œβ”€β”€ conf.py              # Sphinx configuration
   β”œβ”€β”€ _static/             # Static assets for Sphinx
   β”œβ”€β”€ audio/               # Audio section
   β”œβ”€β”€ basics/              # Engine basics (Getting Started)
   β”œβ”€β”€ editor/              # Editor & tooling docs
   β”œβ”€β”€ involved/            # Contribution & process (this folder)
   β”‚   β”œβ”€β”€ index.rst
   β”‚   β”œβ”€β”€ documentation_guide.rst
   β”‚   β”œβ”€β”€ style_guide.rst
   β”‚   └── review_process.rst
   β”œβ”€β”€ rendering/           # Rendering docs
   └── scripting/           # Scripting docs

Files and Their PurposeΒΆ

File

Purpose

index.rst

Section entry point, contains toctree and general description

*.rst

Documentation in reStructuredText format

conf.py

Sphinx settings (theme, extensions, paths)

_static/

Images, CSS, JavaScript files

_build/

Generated HTML documentation (in .gitignore)

The following pages contain detailed guides: