Skip to content

Commit b4c3e9c

Browse files
committed
Allow the user to override the values determined by this extension.
1 parent 4275010 commit b4c3e9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seed_intersphinx_mapping/extension.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def sphinx_seed_intersphinx_mapping(app: Sphinx, config: Config) -> None:
101101
raise NotImplementedError(f"Unsupported requirements source '{config.pkg_requirements_source}'")
102102

103103
for name, (uri, inv) in seed_intersphinx_mapping(*requirements).items():
104-
config.intersphinx_mapping[name] = (name, (uri, (inv, )))
104+
if name not in config.intersphinx_mapping:
105+
config.intersphinx_mapping[name] = (name, (uri, (inv, )))
105106

106107
# from pprint import pprint
107108
# pprint(config.intersphinx_mapping)

0 commit comments

Comments
 (0)