aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-03-28 22:17:04 +0200
committern-peugnet <n.peugnet@free.fr>2022-03-28 22:17:04 +0200
commite4a912b6776a33d3092d70155a8a2a4a09542d7e (patch)
treeb39e9e49757d754b6a2d2302309343ba4832c713 /conf.py
parentf4800a5d80f9d654ebf3e41bb6b7c6f64bbae6bc (diff)
downloadclub1-docs-e4a912b6776a33d3092d70155a8a2a4a09542d7e.tar.gz
club1-docs-e4a912b6776a33d3092d70155a8a2a4a09542d7e.zip
fix: dirty locale files management -> use gettext
mainly get rid of sphinx intl and use genuine gettext utilities. - move back .pot file generation from sphinx to _build - copy .pot files from _build using xgettext (correct width and metadata) - enforce consitent width and metadata order with Weblate using msgmerge - Make now correctly tracks locales files dependencies - update README with new deps and descriptions - remove sphinx intl from deps and github action - Sphinx get basic metadata from ENVVARS set by Make
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/conf.py b/conf.py
index 23934f4..e6b3549 100644
--- a/conf.py
+++ b/conf.py
@@ -17,11 +17,10 @@ import os
# -- Project information -----------------------------------------------------
-project = 'CLUB1'
+project = os.environ['PACKAGE']
copyright = '2022, Nicolas PEUGNET'
-author = 'Nicolas PEUGNET'
-version = 'main'
-release = version
+author = os.environ['COPYRIGHT']
+version = os.environ['VERSION']
# -- General configuration ---------------------------------------------------
@@ -50,6 +49,9 @@ language = 'fr'
# Set by make.
languages = os.environ['LANGUAGES'].split(' ')
+# Managed by make and gettext.
+gettext_auto_build = False
+
# Use a single POT and PO file par language.
gettext_compact = 'package'