mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
store actual file modification time instead of now()
This commit is contained in:
1 parent
24a5097717
commit
ef8ae809e6
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user