mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
store actual file modification time instead of now()
This commit is contained in:
parent
24a5097717
commit
ef8ae809e6
@ -616,8 +616,8 @@ class BuildEnvironment:
|
||||
self.note_citations_from(docname, doctree)
|
||||
self.build_toc_from(docname, doctree)
|
||||
|
||||
# store time of reading, used to find outdated files
|
||||
self.all_docs[docname] = time.time()
|
||||
# store file modification time, for outdated files detection
|
||||
self.all_docs[docname] = path.getmtime(src_path)
|
||||
|
||||
if app:
|
||||
app.emit('doctree-read', doctree)
|
||||
|
Loading…
Reference in New Issue
Block a user