sphinx: change default language to 'en'
PATCH 1/1 sphinx: change default language to 'en'
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).
--- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/conf.py +1 -1
@@ -126,7 +126,7 @@ # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.
Signature · 1 line
2.36.1
Quoted 6 lines · Martin Liška
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).
(The typo here ("langauge") is present in the upstream Sphinx error message.)
and applied to target-arm.next; thanks.
(I also checked that this didn't break any of the older sphinx versions we need to continue supporting.)
-- PMM
Quoted 9 lines · Peter Maydell
Quoted 6 lines · Martin Liška
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).(The typo here ("langauge") is present in the upstream Sphinx error message.)
Yep, it's very funny :) Anyway, they fixed that in latest Sphinx release.
Quoted 9 lines
Reviewed-by Peter Maydell <[email protected]>and applied to target-arm.next; thanks.
(I also checked that this didn't break any of the older sphinx versions we need to continue supporting.)
-- PMM