We use UV to maintain the development environment for the documentation. Install dependencies with
uv syncActivate the environment with
source ./.venv/bin/activateKeep requirements.txt up to date with the UV venv by running
uv export --format requirements-txt > requirements.txtpip install -r requirements.txtEnglish en is the default language.
to build the default:
make htmlto build another language, e.g. French:
make -e SPHINXOPTS="-D language='fr'" htmlView the result in /_build/html/
If you are interested in translating this documentation, you can use our Weblate project for the user guide. If your language is not listed, please contact the development team to add it.
To add a new language
sphinx-intl update --pot-dir _build/gettext -l de
change de to the locale you want to add
To update after default language has changed:
sphinx-intl update -p _build/localeTo generate .po files for a new language e.g. French:
make gettext
sphinx-intl update -p _build/gettext -l frupdate.sh updates all languages after English has changed:
./update.shbuild.sh builds all languages into the www folder:
./build.sh- add language code to
LANGand leave an empty line at the end of the file - add the
<option>to_themes/theme/layout.htmlline 109
Images for English are in the /images folder.
To provide localised versions of images, place them in a folder such as images/fr/.
The content of this documentation is licensed under the Creative Commons Attribution 4.0 International (CC-BY).
The theme is modified from the Krita documentation and licensed under the GNU Free Documentation License.