diff options
author | Dr. Jens Harbott <harbott@osism.tech> | 2022-02-02 15:10:31 +0100 |
---|---|---|
committer | Dr. Jens Harbott <harbott@osism.tech> | 2022-02-03 12:19:27 +0100 |
commit | 746b91335cd7f1796883e4719e544a8b82958a82 (patch) | |
tree | 5b113c7b766421c1f33cc8b7944aff54dfb8bb8f | |
parent | f00dce9e2f078cd7d77d8aee52fd63e891bdacd2 (diff) | |
download | python-openstackclient-746b91335cd7f1796883e4719e544a8b82958a82.tar.gz |
Don't fail on extlinks warnings for reno build
With Sphinx==4.4.0 some "helpful" warnings were introduced when an
external link could be replaced by a macro, like for :lpbug:. Sadly we
have a very high number of existing release notes that trigger these
warnings and no good way to fix them retrospectively, because would mess
up their mapping to releases. So we change the logging for the
sphinx.ext.extlinks to ignore these warnings for now.
Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I709de5e454434b8790a68d9e67ca1432387b21ab
-rw-r--r-- | releasenotes/source/conf.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 206c0ce2..179f8f23 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -37,6 +37,14 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. +from sphinx.util import logging + +# According to the discussion in +# https://github.com/sphinx-doc/sphinx/issues/10112 this may be applied as a +# dirty hack until the issue with replacing extlinks is resolved +linklogger = logging.getLogger('sphinx.ext.extlinks') +linklogger.setLevel(40) # Ignore messages less severe than ERROR + extensions = [ 'openstackdocstheme', 'reno.sphinxext', |