Skip to content

Commit 746b913

Browse files
committed
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
1 parent f00dce9 commit 746b913

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

releasenotes/source/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
# Add any Sphinx extension module names here, as strings. They can be
3838
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3939
# ones.
40+
from sphinx.util import logging
41+
42+
# According to the discussion in
43+
# https://github.com/sphinx-doc/sphinx/issues/10112 this may be applied as a
44+
# dirty hack until the issue with replacing extlinks is resolved
45+
linklogger = logging.getLogger('sphinx.ext.extlinks')
46+
linklogger.setLevel(40) # Ignore messages less severe than ERROR
47+
4048
extensions = [
4149
'openstackdocstheme',
4250
'reno.sphinxext',

0 commit comments

Comments
 (0)