mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
intersphinx_disabled_refs, hard-code honor_disabled_refs in one more function
This commit is contained in:
parent
778a3fe6a7
commit
e192f6253a
@ -431,7 +431,6 @@ def resolve_reference_any_inventory(env: BuildEnvironment,
|
|||||||
|
|
||||||
|
|
||||||
def resolve_reference_detect_inventory(env: BuildEnvironment,
|
def resolve_reference_detect_inventory(env: BuildEnvironment,
|
||||||
honor_disabled_refs: bool,
|
|
||||||
node: pending_xref, contnode: TextElement
|
node: pending_xref, contnode: TextElement
|
||||||
) -> Optional[Element]:
|
) -> Optional[Element]:
|
||||||
"""Attempt to resolve a missing reference via intersphinx references.
|
"""Attempt to resolve a missing reference via intersphinx references.
|
||||||
@ -443,7 +442,7 @@ def resolve_reference_detect_inventory(env: BuildEnvironment,
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# ordinary direct lookup, use data as is
|
# ordinary direct lookup, use data as is
|
||||||
res = resolve_reference_any_inventory(env, honor_disabled_refs, node, contnode)
|
res = resolve_reference_any_inventory(env, True, node, contnode)
|
||||||
if res is not None:
|
if res is not None:
|
||||||
return res
|
return res
|
||||||
|
|
||||||
@ -464,7 +463,7 @@ def missing_reference(app: Sphinx, env: BuildEnvironment, node: pending_xref,
|
|||||||
contnode: TextElement) -> Optional[Element]:
|
contnode: TextElement) -> Optional[Element]:
|
||||||
"""Attempt to resolve a missing reference via intersphinx references."""
|
"""Attempt to resolve a missing reference via intersphinx references."""
|
||||||
|
|
||||||
return resolve_reference_detect_inventory(env, True, node, contnode)
|
return resolve_reference_detect_inventory(env, node, contnode)
|
||||||
|
|
||||||
|
|
||||||
def normalize_intersphinx_mapping(app: Sphinx, config: Config) -> None:
|
def normalize_intersphinx_mapping(app: Sphinx, config: Config) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user