Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MUYSC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jorge Alfredo Jaimes Teherán
MUYSC
Commits
0b2250d0
Unverified
Commit
0b2250d0
authored
4 years ago
by
Chris Holdgraf
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
FIX: fixing mtime bug (#1153)
parent
fe457fe7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jupyter_book/commands/__init__.py
+3
-2
3 additions, 2 deletions
jupyter_book/commands/__init__.py
with
3 additions
and
2 deletions
jupyter_book/commands/__init__.py
+
3
−
2
View file @
0b2250d0
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment