Skip to content

Commit ce1568f

Browse files
jkhsjdhjss-heppner
authored andcommitted
docs: remove lxml intersphinx workaround
Now that we use `etree._Element` instead of `etree.Element` in our docstrings and type annotations, we don't need this workaround anymore.
1 parent 2ef4cfe commit ce1568f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/source/conf.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import os
1414
import sys
1515
import datetime
16-
from sphinx.ext import intersphinx
1716

1817

1918
sys.path.insert(0, os.path.abspath('../..'))
@@ -75,11 +74,6 @@ def on_missing_reference(app, env, node, contnode):
7574
# see: https://github.com/rwth-iat/PyECMA376-2/issues/3
7675
if path[0] == "pyecma376_2":
7776
return contnode
78-
# lxml uses _Element instead of Element and _ElementTree instead of ElementTree in its documentation,
79-
# causing missing references if untreated.
80-
if len(path) > 2 and path[0:2] == ["lxml", "etree"] and path[2] in {"Element", "ElementTree"}:
81-
node["reftarget"] = ".".join(path[0:2] + ["_" + path[2]] + path[3:])
82-
return intersphinx.resolve_reference_in_inventory(env, "lxml", node, contnode)
8377
return None
8478

8579

0 commit comments

Comments
 (0)