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.
Metadata
Release files for mkdocs-exclude-unused 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_exclude_unused-1.0.5.tar.gz | 3.4 kB | With provenance | Details for mkdocs_exclude_unused-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_exclude_unused-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_exclude_unused-1.0.5-py3-none-any.whl |
Total release size: 7.5 kB
Release files / mkdocs_exclude_unused-1.0.5.tar.gz
| Download URL | mkdocs_exclude_unused-1.0.5.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f847c736ff83a0f532f3a0d761dc97c379270d024e9f24603798b89c1fa7ceb0
|
|
BLAKE2b-256 checksum How to use checksums |
5b4d0bf1dc77c002b5c8803a12ce8c02fe40c5999ca2c92bf224a9463ad9a7d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency logRelease files / mkdocs_exclude_unused-1.0.5-py3-none-any.whl
| Download URL | mkdocs_exclude_unused-1.0.5-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a662ef093268272832b03baa90e5f4d4cd04f5551f00dc5ab36ff2fe71dcd51a
|
|
BLAKE2b-256 checksum How to use checksums |
6dcd46c04ed176cda3fe9cbcfe09244505565328bfb06c6d2cf088cba3769443
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency logSecurity for mkdocs-exclude-unused 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mkdocs_exclude_unused-1.0.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.