Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 56153b9

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

File tree

Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed

‎.github/labeler.yml

Copy file name to clipboardExpand all lines: .github/labeler.yml
+1Lines 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

Copy file name to clipboardExpand all lines: doc/sphinxext/missing_references.py
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.