Unverified Commit 6d87f1f6 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Suppress warning about references

parent a25ac3b3
...@@ -192,3 +192,16 @@ intersphinx_mapping = {'python': ('https://docs.python.org/3.5', None)} ...@@ -192,3 +192,16 @@ intersphinx_mapping = {'python': ('https://docs.python.org/3.5', None)}
suppress_warnings = [ suppress_warnings = [
'image.nonlocal_uri', 'image.nonlocal_uri',
] ]
# Hotfix for problems with name clashes in references
# https://github.com/sphinx-doc/sphinx/issues/3866
from sphinx.domains.python import PythonDomain
class PatchedPythonDomain(PythonDomain):
def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode):
if 'refspecific' in node:
del node['refspecific']
return super(PatchedPythonDomain, self).resolve_xref(
env, fromdocname, builder, typ, target, node, contnode)
def setup(sphinx):
sphinx.override_domain(PatchedPythonDomain)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment