Skip to content
Snippets Groups Projects
Unverified Commit 0b2250d0 authored by Chris Holdgraf's avatar Chris Holdgraf Committed by GitHub
Browse files

FIX: fixing mtime bug (#1153)

parent fe457fe7
No related branches found
No related tags found
No related merge requests found
...@@ -228,9 +228,10 @@ def build( ...@@ -228,9 +228,10 @@ def build(
) )
# Check whether the table of contents has changed. If so we rebuild all # Check whether the table of contents has changed. If so we rebuild all
if toc and BUILD_PATH.joinpath(".doctrees").exists(): build_files = list(BUILD_PATH.joinpath(".doctrees").rglob("*"))
if toc and build_files:
toc_modified = toc.stat().st_mtime toc_modified = toc.stat().st_mtime
build_files = BUILD_PATH.rglob(".doctrees/*")
build_modified = max([os.stat(ii).st_mtime for ii in build_files]) build_modified = max([os.stat(ii).st_mtime for ii in build_files])
# If the toc file has been modified after the build we need to force rebuild # If the toc file has been modified after the build we need to force rebuild
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment