Modify which files MkDocs includes or excludes.
Project description
mkdocs_include_exclude_files
By default, mkdocs copies everything it can find in the docs_dir directory that doesn't start with a .
This plugin allows for customising that.
Installation
pip install mkdocs_include_exclude_files
Requires MkDocs 1.2.3+ and Python 3.8+
Usage
In mkdocs.yml:
plugins:
- search # default plugin, need to re-enable when using manual plugins
- include_exclude_files:
- include:
- ".some_file"
- ".anotherfile"
- exclude
- "some_folder"
- "anotherfolder"
Every file exactly matching those in include will be included. Any file whose location starts with anything in exclude will be excluded.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_include_exclude_files-0.1.0.tar.gz.
File metadata
- Download URL: mkdocs_include_exclude_files-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12070405b70ac4c142b25054423be191b6dc183c0a4699889d147ba18b655864
|
|
| MD5 |
13ac406441acec50baec5ca9488152f5
|
|
| BLAKE2b-256 |
d3245fce6ec44bf80421f5106494da0e8f9de9ec7cd68eed8058989cab341774
|
File details
Details for the file mkdocs_include_exclude_files-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_include_exclude_files-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1d49d8127a8eb1a061b4482174380566b6075d98e028404ef00a912dcabf00b
|
|
| MD5 |
5af9c4d93de71b160cd6021eef2e0093
|
|
| BLAKE2b-256 |
4797c40c82bc7843715f55d4a0c2e9b02fbe8197a1c64703b7633c759fe8395d
|