Simple plugin to exclude notused .md files from docs folder
Project description
mkdocs-exclude-unused
A simple MkDocs plugin that automatically removes all .md files not included in the nav section of your mkdocs.yaml file.
How to use
Simply add plugin to your mkdocs .yml file
plugins:
- mkdocs-exclude-unused
Example
In your mkdocs.yaml your nav section looks like this:
nav:
- Main: index.md
- Page1: Page1.md
But in your docs folder you have:
docs/
index.md
Page1.md
Page2.md
Mkdocs will create .html file for each of .md file even if it's not mentioned in 'nav' section!
Page2.md can be used in other mkdocs.yml files, or it may be required in the docs folder for other reasons.
After running mkdocs build or mkdocs serve, warnings will be generated if Page2.md is missing from the navigation, preventing you from building in --strict mode. This plugin solves the problem by removing unused pages.
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_exclude_unused-1.0.5.tar.gz.
File metadata
- Download URL: mkdocs_exclude_unused-1.0.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f847c736ff83a0f532f3a0d761dc97c379270d024e9f24603798b89c1fa7ceb0
|
|
| MD5 |
4e449e8626bc9fe4f1670eda4bbc409a
|
|
| BLAKE2b-256 |
5b4d0bf1dc77c002b5c8803a12ce8c02fe40c5999ca2c92bf224a9463ad9a7d0
|
Provenance
The following attestation bundles were made for mkdocs_exclude_unused-1.0.5.tar.gz:
Publisher:
build.yml on michal2612/mkdocs-exclude-unused
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_exclude_unused-1.0.5.tar.gz -
Subject digest:
f847c736ff83a0f532f3a0d761dc97c379270d024e9f24603798b89c1fa7ceb0 - Sigstore transparency entry: 974427967
- Sigstore integration time:
-
Permalink:
michal2612/mkdocs-exclude-unused@645b599ffa2f7dcd0ad941d91d62c8f0a144cb1f -
Branch / Tag:
refs/tags/1.0.4 - Owner: https://github.com/michal2612
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@645b599ffa2f7dcd0ad941d91d62c8f0a144cb1f -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkdocs_exclude_unused-1.0.5-py3-none-any.whl.
File metadata
- Download URL: mkdocs_exclude_unused-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a662ef093268272832b03baa90e5f4d4cd04f5551f00dc5ab36ff2fe71dcd51a
|
|
| MD5 |
ad8339958e6b2176781278d03ac2c38f
|
|
| BLAKE2b-256 |
6dcd46c04ed176cda3fe9cbcfe09244505565328bfb06c6d2cf088cba3769443
|
Provenance
The following attestation bundles were made for mkdocs_exclude_unused-1.0.5-py3-none-any.whl:
Publisher:
build.yml on michal2612/mkdocs-exclude-unused
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_exclude_unused-1.0.5-py3-none-any.whl -
Subject digest:
a662ef093268272832b03baa90e5f4d4cd04f5551f00dc5ab36ff2fe71dcd51a - Sigstore transparency entry: 974428027
- Sigstore integration time:
-
Permalink:
michal2612/mkdocs-exclude-unused@645b599ffa2f7dcd0ad941d91d62c8f0a144cb1f -
Branch / Tag:
refs/tags/1.0.4 - Owner: https://github.com/michal2612
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@645b599ffa2f7dcd0ad941d91d62c8f0a144cb1f -
Trigger Event:
push
-
Statement type: