From edc5d295e5e031ef97f86eae96aaba061709d33c Mon Sep 17 00:00:00 2001 From: Tremeschin <29046864+Tremeschin@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:13:57 -0400 Subject: [PATCH] Exclude mkdocs-gen-files from file watching --- src/mkdocs_include_markdown_plugin/plugin.py | 2 ++ 1 file changed, 2 insertions(+) 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 = []