mkdocs-git-committers-plugin-2 icon indicating copy to clipboard operation
mkdocs-git-committers-plugin-2 copied to clipboard

Live reload infinite loop when serving locally

Open j3soon opened this issue 1 year ago • 0 comments

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: https://github.com/mkdocs/mkdocs/issues/2519

j3soon avatar Jul 23 '24 15:07 j3soon