mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #978: intersphinx_mapping
also allows a list as a parameter
This commit is contained in:
parent
57dd53d903
commit
175c6e66a6
1
CHANGES
1
CHANGES
@ -12,6 +12,7 @@ Features added
|
|||||||
* #3241: emit latex warning if buggy titlesec (ref #3210)
|
* #3241: emit latex warning if buggy titlesec (ref #3210)
|
||||||
* #3194: Refer the $MAKE environment variable to determine ``make`` command
|
* #3194: Refer the $MAKE environment variable to determine ``make`` command
|
||||||
* Emit warning for nested numbered toctrees (refs: #3142)
|
* Emit warning for nested numbered toctrees (refs: #3142)
|
||||||
|
* #978: `intersphinx_mapping` also allows a list as a parameter
|
||||||
|
|
||||||
Bugs fixed
|
Bugs fixed
|
||||||
----------
|
----------
|
||||||
|
@ -242,7 +242,7 @@ def load_mappings(app):
|
|||||||
cache = env.intersphinx_cache
|
cache = env.intersphinx_cache
|
||||||
update = False
|
update = False
|
||||||
for key, value in iteritems(app.config.intersphinx_mapping):
|
for key, value in iteritems(app.config.intersphinx_mapping):
|
||||||
if isinstance(value, tuple):
|
if isinstance(value, (list, tuple)):
|
||||||
# new format
|
# new format
|
||||||
name, (uri, inv) = key, value
|
name, (uri, inv) = key, value
|
||||||
if not isinstance(name, string_types):
|
if not isinstance(name, string_types):
|
||||||
|
Loading…
Reference in New Issue
Block a user