ETJump is a Wolfenstein: Enemy Territory trickjump modification. The documentation contains set of all available ETJump cvars, mapping entities and more. The documentation is hosted on the http://etjump.rtfd.io/.
This documentation is built using Sphinx with MyST Parser. This allows the documentation to be written using Markdown, while having the full power of reStructuredText available if desired. If you wish to contribute, we prefer contributions written in Markdown - but we accept pages written in reStructuredText too if that is what you prefer to write.
For simple edits (fixing typos, rewording things etc), editing the pages directly in GitHub is the simplest way to contribute.
- Fork the project
- Do your edits in your fork of the repository
- Create a Pull Request to this repository
For more complex edits, it is recommended to setup an environment to build the documentation locally.
- Install Python
- Clone the repository
- Optional, but highly recommended: setup a virtual Python environment
- Navigate to the documentation directory and install the dependencies
pip install -r docs/requirements.txt
For building, there are two main options: sphinx-autobuild
and make
.
- Install sphinx-autobuild
pip install sphinx-autobuild
- Build the documentation
sphinx-autobuild docs docs/_build/html
- This will start an HTTP server at http://127.0.0.1:8000 and monitors changes in the
docs
directory. Whenever you make changes to the pages,sphinx-autobuild
will rebuild the documentation automatically, allowing for much faster workflow.
- Install make
- Navigate to the
docs
directory and build the documentation
cd docs
make html
- Open
docs/_build/html/index.html
in your browser to view the pages
If you're adding new pages to the documentation, the pages must be included within a toctree
directive in index.md
. After adding the page, it's necessary to do a clean rebuild of the documentation for the page to appear in the navigation.
cd docs
make clean
make html
See the examples for existing pages in the index.md
, and the documentation for toctree in Sphinx documentation.