Tuleap uses Sphinx in order to generate its documentation.
git clone git@github.com:Enalean/tuleap-documentation-en.git
cd tuleap-documentation-en/
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt -r requirements-dev.txt
deactivate
source venv/bin/activate
make html
deactivate
The documentation is generated in tuleap-documentation-en/_build/html/en/
You can check the modifications by opening index.html
with your web browser. You need to build the documentation in order to see your modifications.
To build documentation for tuleap.org:
source venv/bin/activate
make SPHINXOPTS="-D html_theme=tuleap_org" html
deactivate
To add a Google Analytics snippet, use the following theme options:
source venv/bin/activate
make SPHINXOPTS="-D html_theme=tuleap_org -D html_theme_options.ga_id=UA-XXXXXXXX-Y -D html_theme_options.ga_content_group_index=YYYYYYYYYYY -D html_theme_options.ga_content_group_name=WWWWWWWW" html
deactivate
To build the documentation in watch mode:
source venv/bin/activate
make SPHINXOPTS="-D html_theme=tuleap_org" watch-html
deactivate
A web-server will start, the modifies pages will be rebuilt and reloaded automatically each time you save your work.
cd tuleap-documentation-en/languages/en/
There will be a few main folders in here which correspond to documentation sections. To add a new page, create the file in the correct directory then add the reference in index.rst
.
Note: All changes must be pushed on the master
branch.
Tuleap and its documentation are licensed under GPLv2 or above.