From 746b91335cd7f1796883e4719e544a8b82958a82 Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Wed, 2 Feb 2022 15:10:31 +0100 Subject: [PATCH] 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 Change-Id: I709de5e454434b8790a68d9e67ca1432387b21ab --- releasenotes/source/conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 206c0ce2ac..179f8f23fc 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',