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: Id646d77afc6817921e29eeab3bee75c50021c50b
This commit is contained in:
Dr. Jens Harbott 2022-02-21 12:15:41 +01:00
parent 78d276e722
commit d993b52b30
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,13 @@
# -- General configuration ------------------------------------------------
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
# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'