mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix wrong invalidation of parent files.
This commit is contained in:
parent
2a8c780300
commit
2ca4b5a9b0
@ -197,7 +197,7 @@ class BuildEnvironment:
|
|||||||
# (don't show if it's only one item)
|
# (don't show if it's only one item)
|
||||||
self.toctree_relations = {} # filename -> ["parent", "previous", "next"] filename
|
self.toctree_relations = {} # filename -> ["parent", "previous", "next"] filename
|
||||||
# for navigating in the toctree
|
# for navigating in the toctree
|
||||||
self.files_to_rebuild = {} # filename -> list of files (containing its TOCs)
|
self.files_to_rebuild = {} # filename -> set of files (containing its TOCs)
|
||||||
# to rebuild too
|
# to rebuild too
|
||||||
|
|
||||||
# X-ref target inventory
|
# X-ref target inventory
|
||||||
@ -234,8 +234,9 @@ class BuildEnvironment:
|
|||||||
self.titles.pop(filename, None)
|
self.titles.pop(filename, None)
|
||||||
self.tocs.pop(filename, None)
|
self.tocs.pop(filename, None)
|
||||||
self.toc_num_entries.pop(filename, None)
|
self.toc_num_entries.pop(filename, None)
|
||||||
self.files_to_rebuild.pop(filename, None)
|
|
||||||
|
|
||||||
|
for subfn, fnset in self.files_to_rebuild.iteritems():
|
||||||
|
fnset.discard(filename)
|
||||||
for fullname, (fn, _) in self.descrefs.items():
|
for fullname, (fn, _) in self.descrefs.items():
|
||||||
if fn == filename:
|
if fn == filename:
|
||||||
del self.descrefs[fullname]
|
del self.descrefs[fullname]
|
||||||
|
Loading…
Reference in New Issue
Block a user