-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Fix infinite live reloading of the docs #36
Conversation
Codecov Report
@@ Coverage Diff @@
## master #36 +/- ##
=======================================
Coverage 52.18% 52.18%
=======================================
Files 43 43
Lines 6241 6241
=======================================
Hits 3257 3257
Misses 2984 2984 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
adce770
to
8077bc2
Compare
8077bc2
to
0cb620f
Compare
This is ready for merging, but it needs to be merged after #39 |
Previously, the docs would reload infinitely because there was a hook that automatically generated markdown files out of jupyter notebooks. The problem was that the generated markdown files were stored directly into docs folder, which triggered mkdocs to rebuild again. This patch changes the target directory of the generated files and adds a new mkdocs hook (`on_files`) that adds all the files during the build process. This way the autogenerated files are not triggering the reload.
e5a0892
to
a33174b
Compare
a33174b
to
4c086a1
Compare
Previously, the docs would reload infinitely because there was a hook that automatically generated markdown files out of Jupyter notebooks.
The problem was that the generated markdown files were stored directly in the docs folder, which triggered mkdocs to rebuild again.
This PR changes the target directory of the generated files and adds a new mkdocs hook (
on_files
) that adds all the files during the build process. This way the autogenerated files are not triggering the reload.Waiting for #39