Skip to content
darktable user manual

development & deployment

Table of Contents

darktable’s documentation is maintained in the dtdocs repository. Changes are introduced through pull requests (see workflow). Translations are maintained through weblate; see translations.

Building#

The full set of outputs (HTML site, EPUB, and per-language PDFs) is built by ./tools/build-all.sh <base_url>

This generates the translated content from the PO files, then builds the HTML site, the EPUB, and one PDF per enabled language. Outputs are written under public/, with PDFs at public/<lang>/darktable_user_manual.pdf.

Requirements: Hugo (extended), weasyprint, and po4a for the translation step.

GitHub Pages deployment (for development)#

For development purposes, the docs are deployed to GitHub Pages on every push: A GitHub Action runs tools/build-all.sh, which generates HTML, EPUB and PDF outputs. These are committed to the repository’s gh-pages branch and served via GitHub Pages at https://darktable-org.github.io/dtdocs/. Generation of translated pages is disabled in the GitHub pages deployment.

Official deployment to darktable.org#

The official deployment of the manual is on the pixls.us server at docs.darktable.org/usermanual/stable/ for the current release and docs.darktable.org/usermanual/development/ for darktable’s current development snapshot.

The repositories are pulled regularly and the documentation is built with Hugo, including translations as well as EPUB and PDF outputs. The build log can be found here.

Versioning and archiving of the manual#

For each new version of darktable released a manual intervention is required:

  • on the dtdocs repository
    • create a new branch release-X.X (from master)
    • In the newly created branch remove the note “This manual tracks the current development version of darktable.” from the landing page.
    • in all deployed branches update versions.yaml, which feeds the version switchers.
  • on the pixls server, by the admin:
    • update the build script to pull and build the new branch
    • update the nginx config to serve https://docs.darktable.org/usermanual/<X.X>/ from the deployment of the new branch
    • update the redirect from https://docs.darktable.org/usermanual/stable/ to point to the new version
    • possibly take down deployments of older versions.

This is especially important as darktables internal help function (clicking first on ? and then on an UI element) resolves to the version specific URL.

Older versions of the docs are taken offline from time to time and are archived in EPUB and PDF format as releases on GitHub:

Between 4.8 and 5.6 no snapshots are available because versioning of the manual had been suspended in that period.

Theme#

The theme is based on bootstrap 4 and heavily modified. The master branch is the source of truth for the theme. Changes are pushed to master first, then transferred to the deployed release-branches via git cherry-pick -x.