mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3866: Suppress a new warning type: python refs
This commit is contained in:
parent
cdc5b8d575
commit
db88166a3f
4
CHANGES
4
CHANGES
@ -68,6 +68,10 @@ Deprecated
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Now :confval:`suppress_warnings` accepts following configurations:
|
||||
|
||||
- ``ref.python`` (ref: #3866)
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
|
@ -239,6 +239,7 @@ General configuration
|
||||
* ref.citation
|
||||
* ref.footnote
|
||||
* ref.doc
|
||||
* ref.python
|
||||
* misc.highlighting_failure
|
||||
* toc.secnum
|
||||
* epub.unknown_project_files
|
||||
|
@ -833,7 +833,7 @@ class PythonDomain(Domain):
|
||||
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':
|
||||
|
Loading…
Reference in New Issue
Block a user