Source files for Zammad’s user documentation.
If you would like to improve the docs, simply:
- fork the repo,
- edit the appropriate
.rst
files (see Markup Format below), and - submit a pull request.
🌍 Wanna help translate? Submit your contributions (or request additional languages) here. Do NOT submit a PR with changes to the contents of the
locale/
directory.
Thanks! ❤ ❤ ❤
The Zammad Team
These docs are written using the ReStructuredText markup format. Info about this markup language can be found at:
- http://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html
- https://sphinx-rtd-theme.readthedocs.io/en/latest/demo/structure.html
-
sphinx
$ pip install sphinx sphinx-autobuild sphinx-intl sphinx_rtd_theme
-
gettext
$ brew install gettext # macOS $ sudo apt install gettext # Debian / Ubuntu $ sudo dnf install gettext # Fedora ...
-
transifex-client (optional)
$ pip install transifex-client
$ make html
# create .tx config
$ tx init
# ensure clean enviroment
$ make clean
# generate the strings from the *.rst files
$ make gettext
# OPTIONAL: if you have to adapt a new locale, run
sphinx-intl update -p _build/locale/ -l de
# update the resource files from the pot dir
$ sphinx-intl update-txconfig-resources --pot-dir _build/locale --transifex-project-name zammad-user-documentation
# push to transifex (if configured)
$ tx push -s
# Below pull options by default ignore unreviewed (see https://docs.transifex.com/client/pull#getting-different-file-variants )
# after translation pull needed languages from transifex
$ tx pull -l en
# build the .MO files for use with readthedocs
# (After a successful build, push to this repo and readthedocs will update itself.)
$ sh build_mo.sh
# manual language-based build (`_build/html/`) (for testing)
$ make -e SPHINXOPTS="-D language='de'" html
$ make -e SPHINXOPTS="-D language='en'" html