For documentation we use sphinx
, it autogenerates the documentation into html.
To generate new docs do the following:
Generate reference documetation for
odesk
module:sphinx-apidoc --force -o reference-docs odesk
Edit the
reference-docs/odesk.rst
:- Move
Module contents
section to the top - Delete
odesk.tests module
section
- Move
Edit the
reference-docs/odesk.routers.rst
:- Move
Module contents
section to the top
- Move
Generate documentation in html format:
sphinx-build -b html . _gh-pages
Check the documentation html that everything is okay.
Upload contents of
_gh-pages
folder to the Github Pages (seegh-pages
branch):sh update_docs.sh