The HTML version is available here: http://opentechschool.github.com/python-beginners/
The following sections are for people who want to contribute.
This workshop is written in the reStructuredText format. The
.rst files can be edited with a normal text editor.
It can be rendered to several output formats using Sphinx. To do that, you need to have the following Python packages installed:
- docutils
- Pygments
- Sphinx
- Fabric
The fabric script fabfile.py contains tasks making the build process very
easy. The following commands have to be executed in the docs directory.
If you just want to render the HTML version, it's sufficient to run
fab buildThis will create a directory _build inside the docs directory,
containing the HTML version.
Other builders can be
passed as argument. For instance use singlehtml to render the whole
tutorial into a single HTML file.
fab build:singlehtmlThe workshop is deployed as a GitHub Page. A good way to do
that is described here. To simplify this
process, you can use the fabric target setup.
fab setupThis creates a clone of the repository inside the _build folder. You can
now run fab build, change into docs/_build/html, commit and push.