Skip to content

Commit

Permalink
Add all the mkdocs config files to the reload-watcher
Browse files Browse the repository at this point in the history
When I made the changes to documentation generation I split up the then
single mkdocs configuration file. It looks like the reloader for mkdocs
always watches its configuration file, bit *only* the one that was loaded in
the first place, not any that are inherited from.

So this change adds all of the mkdocs yml files to the watch list to ensure
that any change causes the documentation server to reload.

Most useful if you're adding new files to the navigation.
  • Loading branch information
davep committed Mar 8, 2023
1 parent fc37a5c commit e6e9d2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mkdocs-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ plugins:
- "^__init__$"
- "!^can_replace$"
watch:
- mkdocs-common.yml
- mkdocs-nav-offline.yml
- mkdocs-nav-online.yml
- mkdocs-offline.yml
- mkdocs-online.yml
- src/textual
exclude:
glob:
Expand Down

0 comments on commit e6e9d2b

Please sign in to comment.