The SpeedCrunch manual and website is made using Sphinx. It can be built either as a manual bundled with the application, using a stripped-down theme for use with QtHelp and QTextBrowser, or as the full website with a more complete theme.
build-bundled- build all language versions of the bundled manual in the_build-bundleddirectory. This build can be used when building SpeedCrunch by setting theHTML_DOCS_DIRCMake variable to the build directory.build-html- build all language versions of the website in the_build-htmldirectory.update-prebuilt-manual- update the prebuilt manual in thebuild_html_embeddeddirectory. This is intended to be committed to Git and is used for default source builds.update-translations- extract translatable strings from all source files and update the .po files in thelocaledirectory.
Building the docs requires additional dependencies:
- Sphinx 3.0 or later
- the Qt help builder extension 1.0 or later
Building the bundled docs requires:
- the Quark theme 0.2 or later
- qhelpgenerator matching the Qt version used to build SpeedCrunch
Building the website requires:
Updating the translation templates requires:
- the pygettext script shipped with Python
- sphinx-intl with the
transifexfeature
- Add the new language to the
LANGUAGESmap at the top ofconf.py - Add the language to the
build-htmlandbuild-bundledtargets in the Makefile - Copy the lines in
manual.qrcfor the new language - Create a directory for the new language in
locale - Run
make update-translationsto create the translation files for the new language