mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed inventory updates in interlinks extension, now really includes all
interlinks. If .update() is used on intersphinx_inventory directly, the "last" cache entry overwrites all previous inventory entries. Instead, update dictinaries for different types separately.
This commit is contained in:
@@ -158,8 +158,9 @@ def load_mappings(app):
|
||||
if update:
|
||||
env.intersphinx_inventory = {}
|
||||
for _, invdata in cache.itervalues():
|
||||
if invdata:
|
||||
env.intersphinx_inventory.update(invdata)
|
||||
for type, objects in invdata.iteritems():
|
||||
env.intersphinx_inventory.setdefault(
|
||||
type, {}).update(objects)
|
||||
|
||||
|
||||
def missing_reference(app, env, node, contnode):
|
||||
|
||||
Reference in New Issue
Block a user