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
This commit is contained in:
Takashi Kajinami 2023-09-07 19:26:31 +09:00
parent edddb6bf49
commit 943a2f474c

View File

@ -63,7 +63,7 @@ html_theme = 'openstackdocs'
# #
# This is also used if you do content translation via gettext catalogs. # This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases. # 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 # List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files. # directories to ignore when looking for source files.
@ -129,4 +129,4 @@ texinfo_documents = [
] ]
# Example configuration for intersphinx: refer to the Python standard library. # 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)}