Skip to main content

Simple plugin to exclude notused .md files from docs folder

Project description

License: MIT Build & Test PyPI - Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_exclude_unused-1.0.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_exclude_unused-1.0.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for mkdocs_exclude_unused-1.0.5.tar.gz
Algorithm Hash digest
SHA256 f847c736ff83a0f532f3a0d761dc97c379270d024e9f24603798b89c1fa7ceb0
MD5 4e449e8626bc9fe4f1670eda4bbc409a
BLAKE2b-256 5b4d0bf1dc77c002b5c8803a12ce8c02fe40c5999ca2c92bf224a9463ad9a7d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_exclude_unused-1.0.5.tar.gz:

Publisher: build.yml on michal2612/mkdocs-exclude-unused

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_exclude_unused-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_exclude_unused-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a662ef093268272832b03baa90e5f4d4cd04f5551f00dc5ab36ff2fe71dcd51a
MD5 ad8339958e6b2176781278d03ac2c38f
BLAKE2b-256 6dcd46c04ed176cda3fe9cbcfe09244505565328bfb06c6d2cf088cba3769443

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page