Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56153b9

Browse files
authored
Merge pull request #28820 from QuLogic/missing-ref-none
2 parents f8592cb + f43b746 commit 56153b9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
- 'doc/conf.py'
9090
- 'doc/Makefile'
9191
- 'doc/make.bat'
92+
- 'doc/sphinxext/**'
9293
"Documentation: devdocs":
9394
- changed-files:
9495
- any-glob-to-any-file:

doc/sphinxext/missing_references.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ def handle_missing_reference(app, domain, node):
100100
#. record missing references for saving/comparing with ignored list.
101101
#. prevent Sphinx from raising a warning on ignored references.
102102
"""
103-
typ = node["reftype"]
103+
refdomain = node["refdomain"]
104+
reftype = node["reftype"]
104105
target = node["reftarget"]
105106
location = get_location(node, app)
106-
domain_type = f"{domain.name}:{typ}"
107+
domain_type = f"{refdomain}:{reftype}"
107108

108109
app.env.missing_references_events[(domain_type, target)].add(location)
109110

0 commit comments

Comments
 (0)