ojacques / mkdocs-git-committers-plugin-2

MkDocs plugin for displaying a list of GitHub (.com or Enterprise) contributors on each page. Encourages contributions to the documentation!
MIT License
60 stars 21 forks source link

Live reload infinite loop when serving locally #65

Closed j3soon closed 1 month ago

j3soon commented 3 months ago

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