Skip to content

Commit 8074e3c

Browse files
committed
Sphinx: add process_autodoc_missing_reference
1 parent e8a830a commit 8074e3c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,13 @@
6262
# It's :data:, not :class:, but we can't tell autodoc that.
6363
["py:class", r"types\.EllipsisType"],
6464
]
65+
66+
67+
sphinxconfig_missing_reference_aliases = {
68+
# pymbolic
69+
"ArithmeticExpression": "obj:pymbolic.ArithmeticExpression",
70+
}
71+
72+
73+
def setup(app):
74+
app.connect("missing-reference", process_autodoc_missing_reference) # noqa: F821

0 commit comments

Comments
 (0)