We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee7f8b commit 718993aCopy full SHA for 718993a
1 file changed
sphinx/environment.py
@@ -787,7 +787,12 @@ def read(self_):
787
app.emit('doctree-read', doctree)
788
789
# store time of build, for outdated files detection
790
- self.all_docs[docname] = time.time()
+ # note::
791
+ # Some filesystem's have coarse timestamp resolution.
792
+ # Therefore time.time() is older than filesystem's timestamp.
793
+ # ex. FAT32 have 2sec resolution.
794
+ self.all_docs[docname] = max(
795
+ time.time(), path.getmtime(self.doc2path(docname)))
796
797
if self.versioning_condition:
798
# get old doctree
0 commit comments