Folder include plugin for mkdocs
mkdocs-include-folders is a
mkdocs plugin that allows you
to include and prioritize folders from your input.
Quick start
-
Install the module using pip:
pip3 install mkdocs-include-folders -
If your document folders look like this:
documents
project1
mkdocs.yml
specifications.md
project2
mkdocs.yml
specfications.md
shared-docs
introduction.md
contact.md
.....
you may want to create a document including pages from the project1 and shared-docs and present them in the same folder, this plugin will take documents from project1 and shared-docs and place the im the same folder and also proritize files in project1 over files in shered-docs if they have the same name.
- In your project, add a plugin configuration to
mkdocs.yml:docs_dir: .. plugins: - include-folders
ordocs_dir: .. plugins: - include-folders: priority_path: - 'project1/*' - 'shared-docs/*'
You can provide one or more patterns. (If you don't provide any patterns, then nothing will happen!)
Note! Because of peculiarity of yaml syntax, the glob: and regex: lines
must not start with a dash, but the lines under them must start with
a dash.
Also because of yaml, patterns that start with a punctuation mark must be quoted.
When writing regexes, it's best to use single quotes rather than double quotes, so that your regex backslash escapes are preserved correctly without having to be doubled up.
Release files for mkdocs-include-folders 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mkdocs-include-folders-0.1.4.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mkdocs_include_folders-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / mkdocs-include-folders-0.1.4.tar.gz
| Download URL | mkdocs-include-folders-0.1.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1896e8ca9e32dfd12810063607cf1dc04297f25be3ad2f56811da27acff7636d
|
|
BLAKE2b-256 checksum How to use checksums |
a05929fe231eece0eb86f4cea5682f483437cd8676f43a3e0933bb5bc64ce365
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Release files / mkdocs_include_folders-0.1.4-py3-none-any.whl
| Download URL | mkdocs_include_folders-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d9c970eab53fc114466e23da0c8167d92dfd2d19e5b92eeee3fb0d00a1cdf2d
|
|
BLAKE2b-256 checksum How to use checksums |
56836c7e4cfbdb0156f9d31f84547e4fb0846b79b57f8b5bff62b7b8cef836ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|