See the admin guide instructions for more information.
On macOS, the easiest approach is to use Homebrew to install the latest version of Python 2 and the PIP package manager. Using the Python that the OS provides seems harder. Alternatively, if you use Python for other things, you migth prefer to set up a virtualenv.
-
Install Python and PIP using Homebrew
brew install python pip install --upgrade pip setuptools -
Set language environment variables:
export LC_ALL=en_US.UTF-8 export LC_CTYPE=en_US.UTF-8 export LANG=en_US.UTF-8 -
Install all requirements:
pip install --user -r requirements
The documentation contents are in reStructuredText format. The standard language for writing is english.
In general you can easily build the docs from the root directory by running
./build.sh <de|en|fr>
This will output the docs as HTML into docs/_build. If you want to build to something other than HTML, you can proceed as follows:
cd docs
make html
To build the documentation for a specific language you need to use the language specifc conf.yp files. Those are located in the respective lang_code subdirectories, i.e. de or en.
The files in docs/_locale are used for translations. Update these with:
./i18n.sh
When setting up the build on a Windows machine with cygwin, the following issues may occur:
- cygwin cannot execute the
build.shfile.
As a quick fix, run sed -i 's/\r$//' build.sh i18n.sh``. Make sure you don't commit the changes to b
uild.sh and ì18n.sh.
- pip doesn't install the dependencies in cygwin python's
site-packagedirectory.
Go to /usr/lib/python2.7/site-packages and install the requirements there. For example: pip install termcolor -t ..