New flag mkdocs serve --clean - simulate a pure mkdocs build and then serve

Also rename `--dirtyreload` flag to `--dirty` (keep the old name working)
This commit is contained in:
Oleh Prypin
2023-05-26 12:39:57 +02:00
parent f37ce51da1
commit 930ae26a55
5 changed files with 32 additions and 16 deletions

View File

@@ -310,7 +310,7 @@ exclude_docs: |
This follows the [.gitignore pattern format](https://git-scm.com/docs/gitignore#_pattern_format).
Note that `mkdocs serve` does *not* follow this setting and instead displays excluded documents but with a "DRAFT" mark.
Note that `mkdocs serve` does *not* follow this setting and instead displays excluded documents but with a "DRAFT" mark. To prevent this effect, you can run `mkdocs serve --clean`.
The following defaults are always implicitly prepended - to exclude dot-files (and directories) as well as the top-level `templates` directory: