From 943a2f474c4e3eaad4f65cca9cf4b671b3f78011 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 7 Sep 2023 19:26:31 +0900 Subject: [PATCH] Fix warnings in doc build This fixes the following two warnings detected by recent Sphinx. 1. Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English). 2. WARNING: The pre-Sphinx 1.0 'intersphinx_mapping' format is deprecated and will be removed in Sphinx 8. Update to the current format as described in the documentation. These warnings are treated as errors and `tox -e docs` fails. Change-Id: I6bde5e865d6d750f878fe618ad8e947fc833d899 --- doc/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index be6c212..0c474a0 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -63,7 +63,7 @@ html_theme = 'openstackdocs' # # 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 = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. @@ -129,4 +129,4 @@ texinfo_documents = [ ] # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'https://docs.python.org/': None} +intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}