| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from sphinx.domains.python import PythonDomain |
||
| 2 | |||
| 3 | |||
| 4 | class PatchedPythonDomain(PythonDomain): |
||
| 5 | def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode): |
||
| 6 | if 'refspecific' in node: |
||
| 7 | del node['refspecific'] |
||
| 8 | return super(PatchedPythonDomain, self).resolve_xref( |
||
| 9 | env, fromdocname, builder, typ, target, node, contnode) |
||
| 10 | |||
| 11 | |||
| 12 | def setup(sphinx): |
||
| 13 | sphinx.add_domain(PatchedPythonDomain, override=True) |
||
| 14 |