diff --git a/CHANGES b/CHANGES index a2b5926d37a..15d9443a21e 100644 --- a/CHANGES +++ b/CHANGES @@ -72,6 +72,10 @@ Deprecated Features added -------------- +* Now :confval:`suppress_warnings` accepts following configurations: + + - ``ref.python`` (ref: #3866) + Bugs fixed ---------- diff --git a/doc/config.rst b/doc/config.rst index eea6bbc7de0..3751139cf18 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -239,6 +239,7 @@ General configuration * ref.citation * ref.footnote * ref.doc + * ref.python * misc.highlighting_failure * toc.secnum * epub.unknown_project_files diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 58c9984e064..a55747ab44e 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -833,7 +833,7 @@ def resolve_xref(self, env, fromdocname, builder, elif len(matches) > 1: logger.warning('more than one target found for cross-reference %r: %s', target, ', '.join(match[0] for match in matches), - location=node) + type='ref', subtype='python', location=node) name, obj = matches[0] if obj[1] == 'module':