Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-12-19 10:28:48 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-12-19 12:42:01 +0300
commit30c594fbc592a741956c067f5188f9bf6ecd25da (patch)
tree5188ee1caed867de040071bbd3a018d1045ea0c9 /sphinx/util
parent00db1ea631bf72103d32cdb1edf4304b980502de (diff)
Fix #8365: py domain: :type: and :rtype: gives false ambiguous warnings
The searching context like py:module and py:class are missing in the pending_xref nodes generated from info-field-lists. This sets these searching context info to them.
Diffstat (limited to 'sphinx/util')
-rw-r--r--sphinx/util/docfields.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/util/docfields.py b/sphinx/util/docfields.py
index 404bb127f..9a57ccff7 100644
--- a/sphinx/util/docfields.py
+++ b/sphinx/util/docfields.py
@@ -295,6 +295,7 @@ class DocFieldTransformer:
self.directive.domain,
target,
contnode=content[0],
+ env=self.directive.state.document.settings.env
)
if _is_single_paragraph(field_body):
paragraph = cast(nodes.paragraph, field_body[0])