New exclude_docs config: gitignore-like patterns of files to exclude

These files will not be picked up into the `Files` collection and as such, also the final built site.

Also adds the ability to *un*-ignore the files that MkDocs forcibly ignores.
This commit is contained in:
Oleh Prypin
2023-05-28 22:55:49 +02:00
parent e08c1089d8
commit 67e0e4e052
6 changed files with 88 additions and 55 deletions

View File

@@ -44,6 +44,7 @@ dependencies = [
"typing_extensions >=3.10; python_version < '3.8'",
"packaging >=20.5",
"mergedeep >=1.3.4",
"pathspec >=0.11.1",
"colorama >=0.4; platform_system == 'Windows'",
]
[project.optional-dependencies]
@@ -63,6 +64,7 @@ min-versions = [
"typing_extensions ==3.10; python_version < '3.8'",
"packaging ==20.5",
"mergedeep ==1.3.4",
"pathspec ==0.11.1",
"colorama ==0.4; platform_system == 'Windows'",
"babel ==2.9.0",
]