Skip to content

Commit

Permalink
Exclude mkdocs-gen-files from file watching
Browse files Browse the repository at this point in the history
  • Loading branch information
Tremeschin committed Oct 20, 2024
1 parent 2fee006 commit edc5d29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mkdocs_include_markdown_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit edc5d29

Please sign in to comment.