Install the sphinx
and sphinx-autobuild
python utilities:
pip install sphinx sphinx-autobuild sphinx_rtd_theme recommonmark --user
Note
The --user
flag is to install these libraries into your user directory to avoid problems with your system install. You can also use virtualenv
to create a per-directory python virtual environment.
Ensure that the sphinx-build
and sphinx-autobuild
commands are accessible to your terminal.
On Mac OS X, add the following entry to your ~/.bashrc
. Be sure to use the $HOME
variable and not ~
as this may cause issues running sphinx-build
:
export PATH=$HOME/Library/Python/2.7/bin:$PATH
On Linux, this would probably be:
export PATH=$HOME/.local/bin:$PATH
You may need to run source ~/.bashrc
to ensure the access to the commands.
You can add source ~/.bashrc
to your ~/.bash_profile
(or possibly ~/.profile
)
to automate this step.
You have two options for viewing the docs locally. You can build the docs using make html
and then open the _build/html/index.html
file in your browser.
Alternatively, run make livehtml
and navigate to http://localhost:8000
to view the docs. The HTML is updated as you edit the Markdown source files — no browser reload required!
To contribute to the docs at developers.savaslabs.com
:
- Fork this repository
- Make your changes
a. Edit an existing file
b. If creating a new file, add a line entry to
index.rst
that corresponds to the new filename that you added - Run the tests with
./run-tests.sh
- Submit a pull request for the team to review