aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-04-02 04:32:55 +0200
committern-peugnet <n.peugnet@free.fr>2022-04-02 04:32:55 +0200
commit9a62aeb8ea3954a37362d6b5b9a16b4599c9d1d4 (patch)
tree0ee59e85f800b81b6307377ef437a4e591292159 /conf.py
parent6c010163910995421e9f5409c9be8ce0c567b63f (diff)
downloadclub1-docs-9a62aeb8ea3954a37362d6b5b9a16b4599c9d1d4.tar.gz
club1-docs-9a62aeb8ea3954a37362d6b5b9a16b4599c9d1d4.zip
build: small fixes & enhancementsn-peugnet-add-favicon
- rename LANGUAGE exported env var to LOCAL, not to disturb Make messages - remove failing sphinx commands - remove quotes around BUILDDIR and SOURCEDIR as these will never have spaces - share doctrees for localized builders for perf. This also fixes warning for epub about .doctrees unknown mimetype - fix LaTeX paper size to always use A4 - fix today format to use a localized version
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/conf.py b/conf.py
index 77fa4a2..d17c5fd 100644
--- a/conf.py
+++ b/conf.py
@@ -51,7 +51,7 @@ templates_path = ['_templates']
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
-language = os.environ['LANGUAGE']
+language = os.environ['LOCALE']
# Set by make.
languages = os.environ['LANGUAGES'].split(' ')
@@ -81,6 +81,9 @@ image_converter_args = ['-density', '250', '-resize', '230%']
# Disable smart quotes at Sphinx level, as it is done by MyST.
smartquotes = False
+# Date formats for today, for instance in LaTeX.
+# Use locale’s appropriate date representation.
+today_fmt = '%x'
# -- Options for HTML output -------------------------------------------------
@@ -119,7 +122,16 @@ html_static_path = ['_static']
# The domain is used for code documentation, so no need for it here.
primary_domain = None
+
# -- Options for MAN output --------------------------------------------------
# Show URLs after text in MAN output.
man_show_urls = True
+
+
+# -- Options for LATEX output ------------------------------------------------
+
+# Always use A4 paper.
+latex_elements = {
+ 'papersize': 'a4paper',
+}