Fix: Set default language to 'en' 37/70337/2 v0.7.9
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 28 Jun 2022 10:33:38 +0000 (20:33 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sun, 24 Jul 2022 23:42:26 +0000 (09:42 +1000)
Fixes the following Sphinx warning (treated as error) starting
with 5.0 release:

Warning, treated as error: Invalid configuration value found:
'language = None'. Update your configuration to a valid langauge
code. Falling back to 'en' (English).

Change-Id: Ieb7364430a3a70af9ec528cceb2277ac63eeae5a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
docs_conf/conf.py

index 27b755c..c1e79e9 100644 (file)
@@ -84,7 +84,7 @@ copyright = cfg.get("copyright").format(datetime.datetime.now().year)
 needs_sphinx = cfg.get("needs_sphinx", "1.0")
 exclude_patterns = cfg.get("exclude_patterns", [])
 extensions = cfg.get("extensions", [])
-language = cfg.get("language", None)
+language = cfg.get("language", "en")
 master_doc = cfg.get("master_doc", "index")
 pygments_style = cfg.get("pygments_style", "sphinx")
 source_suffix = cfg.get("source_suffix", ".rst")