Skip to content
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

Live reload infinite loop when serving locally #65

Closed
j3soon opened this issue Jul 23, 2024 · 0 comments · Fixed by #66
Closed

Live reload infinite loop when serving locally #65

j3soon opened this issue Jul 23, 2024 · 0 comments · Fixed by #66

Comments

@j3soon
Copy link
Contributor

j3soon commented Jul 23, 2024

When using mkdocs serve locally with uncommitted files, the mkdocs live/hot reload feature will monitor the changes in the .cache directory, causing a live reload infinite loop.

This can be confirmed by monitoring the changes. I'm not sure why the mkdocs file monitoring continues during build.

$ inotifywait -m -e modify,create,delete -r .
./.cache/plugin/git-committers/ MODIFY page-authors.json
./.cache/plugin/git-committers/ MODIFY page-authors.json
./.cache/plugin/git-committers/ MODIFY page-authors.json
./.cache/plugin/git-committers/ MODIFY page-authors.json
./.cache/plugin/git-committers/ MODIFY page-authors.json
...

I will open a PR to fix this.

Potentially related: mkdocs/mkdocs#2519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant