We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe457fe commit 0b2250dCopy full SHA for 0b2250d
jupyter_book/commands/__init__.py
@@ -228,9 +228,10 @@ def build(
228
)
229
230
# Check whether the table of contents has changed. If so we rebuild all
231
- if toc and BUILD_PATH.joinpath(".doctrees").exists():
+ build_files = list(BUILD_PATH.joinpath(".doctrees").rglob("*"))
232
+ if toc and build_files:
233
toc_modified = toc.stat().st_mtime
- build_files = BUILD_PATH.rglob(".doctrees/*")
234
+
235
build_modified = max([os.stat(ii).st_mtime for ii in build_files])
236
237
# If the toc file has been modified after the build we need to force rebuild
0 commit comments