diff --git a/src/mkdocs_include_markdown_plugin/plugin.py b/src/mkdocs_include_markdown_plugin/plugin.py index f3da110..262036a 100644 --- a/src/mkdocs_include_markdown_plugin/plugin.py +++ b/src/mkdocs_include_markdown_plugin/plugin.py @@ -80,6 +80,8 @@ def _update_watched_files(self) -> None: # pragma: no cover # watch new included files for file_path in watcher.included_files: + if 'mkdocs_gen_files_' in file_path: + continue server.watch(file_path, recursive=False) # type: ignore watcher.included_files = []