This repository contains the source documents for the Rebel Toolbox and Rebel Engine user documentation: https://docs.rebeltoolbox.com.
The documentation uses the reStructuredText (reST) file format. The Rebel Documentation website is generated using Sphinx, which uses Docutils to convert the reST files to html.
Updates to the documentation can be made here, directly on Github. Contributions are submitted via Pull Requests. To learn more about making Pull Requests, please refer to the Github documentation. If you plan on making significant contributions to Rebel Documentation, you will want to learn how to use Git. For good tutorials on using Git, try the Atlassian Git Tutorials.
The Rebel Engine API documentation files are included under the api
folder.
They are automatically generated from Rebel Engine's XML docs.
These are maintained in Rebel Engine under the doc
folder.
Please make updates and Pull Requests to the API documentation there.
See the Contributing to the API Documentation for more information.
To edit an existing page, simply click on the "Edit on GitHub" link in the top, right-hand corner of the page.
There, the file can be edited directly on Github.
Alternatively, if you've Git cloned the documentation, you can locate the .rst
document in the folder structure and edit it in your favorite text editor.
For an introduction to the .rst
file format, refer to the Sphinx reStructuredText Primer.
For more information on how Sphinx extends reStructuredText, refer to the Using Sphinx documentation.
For more information on reStructuredText, refer to the Docutils' reStructuredText documentation.
To add a new page, create a .rst
file with a meaningful name in the section you want to add the documentation e.g. tutorials/3d/light_baking.rst
.
The documentation is divided into sections defined by the folder structure.
Add the new page to the section's table of contents file e.g. tutorials/3d/index.rst
.
Under the .. toctree::
directive, include the filename without the extension.
To add an image to a page, place the image in the img
folder in the folder that contains the page.
Use a meaningful name, and reference the image in the page with:
.. image:: img/light_baking_result.png
To add a downloadable file to a page, place the file in the files
folder in the folder that contains the page.
Use a meaningful name, and reference the file in the page with:
:download:`Light Baking Project <files/light-backing-project.zip>`
To test significant changes before creating a Pull Request, you can build a local copy of the Rebel Documentation website. To do this, you will need a local copy of the Rebel Documentation.
Building the documentation requires Python. For more information on installing Python, refer to the Python documentation.
It is recommended that you build the documentation inside a virtual Python environment.
Keep your Python virtual environments separate from your local copy of the Rebel Documentation.
Create a virtual environment called env
in your separate virtual environments folder,
and activate it.
On Linux or Mac run:
virtualenv env
source env/bin/activate
On Windows run:
virtualenv env
.\env\Scripts\activate
For more information on installing and using virtualenv
, refer to the virtualenv documentation.
Install the required software. From a command prompt inside the folder containing your local copy of the Rebel Documentation, run:
pip install -r requirements.txt
Build the html documentation.
On Linux or Mac run:
make html
On Windows run:
.\make.bat html
You can view your changes by opening _build/html/index.html
in your favorite browser.
With the exception of the api
folder, all the content in this repository is licensed under the Creative Commons Attribution 4.0 International Public License (CC BY 4.0). Attribution should be made to the Rebel Documentation Contributors and/or the specific author.
The files in the api
folder are derived from Rebel Engine and are distributed under the MIT license.