skillfed

mkdocs-exclude

A mkdocs plugin that lets you exclude files or trees.

mkdocs-exclude v1.0.2 254.0K downloads/30d#8,506 on PyPI95
Permissive license Apache Abandoned released

What it is and what it does

mkdocs-exclude is a plugin for mkdocs that filters out files and directories during the documentation build process. You configure it in mkdocs.yml with glob patterns (like `*.tmp`, `exclude/this/path/*`) or regular expressions to match files you want to skip. It solves the problem of having source files in your documentation tree that you don't want included in the final build—temporary files, compiled artifacts, or directories meant for reference only.

The plugin has no runtime dependencies and integrates directly into mkdocs' build pipeline. Configuration is straightforward: you list your exclusion patterns under `glob:` and `regex:` keys in the plugin section of mkdocs.yml. However, the project is no longer maintained, with the last release in February 2019 and no activity since early 2023, so compatibility with recent mkdocs versions is uncertain.

Use it for:

  • Exclude temporary or draft files (*.tmp, *.draft) from being processed during mkdocs builds
  • Filter out compiled artifacts or build outputs (*.pdf, *.gz, *.bin) from documentation source trees
  • Skip entire directories of reference material or work-in-progress content from the final documentation
  • Use regex patterns to exclude files matching complex naming conventions or extensions

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A mkdocs plugin that excludes files and directories from documentation builds using glob patterns or regular expressions.

No—unless you are maintaining an existing mkdocs site already using this plugin. The package is abandoned with no releases since 2019 and no maintenance since early 2023. Modern mkdocs may have built-in or better-maintained alternatives for file exclusion. If you need this functionality, check whether mkdocs itself or a more actively maintained plugin provides it.

Install

mkdocs-exclude on PyPI

pip

pip install mkdocs-exclude

uv

uv add mkdocs-exclude

poetry

poetry add mkdocs-exclude

Installing mkdocs-exclude

Before you install

High install friction with no runtime dependencies. The package is abandoned—last release was 2019-02-20 and last commit 2023-02-02—so expect no maintenance or bug fixes going forward.

License in practice

Licensed under Apache (permissive), so you can use it freely in commercial or open-source projects without copyleft obligations.

Quickstart

pip install mkdocs-exclude

Then add to mkdocs.yml:
plugins:
  - exclude:
      glob:
        - exclude/this/path/*
        - "*.tmp"
      regex:
        - '.*\.(tmp|bin)$'

Requires mkdocs to be installed and configured; compatibility with current mkdocs versions is uncertain given the package's abandonment since 2019.

Verify before relying

  • Whether the plugin works with current mkdocs versions (no releases since early 2019)
  • Python version compatibility (requires_python field is empty in metadata)

Package facts

License Apache (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 2,732 days since the last release
Last repo commit
First released
Downloads 253,989/month — #8,506 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mkdocs-exclude-1.0.2.tar.gz

Tags

mkdocs file exclusionmkdocs exclude pluginmkdocs glob patternsmkdocs regex file filteringmkdocs build file filteringmkdocs ignore files
mkdocs-pluginabandoned

More Documentation packages

docutils

Docutils converts plaintext documentation in…

unclear · top 1,000 on PyPI

Sphinx

Sphinx generates professional documentation…

permissive · top 1,000 on PyPI

griffe

Griffe extracts the complete structure and…

permissive · top 1,000 on PyPI

sphinxcontrib-serializinghtml

A Sphinx extension that outputs documentation…

permissive · top 1,000 on PyPI

alabaster

Alabaster is a clean, responsive Sphinx theme…

permissive · top 1,000 on PyPI

sphinxcontrib-htmlhelp

A Sphinx extension that generates HTML help…

permissive · top 1,000 on PyPI

condor-git-config

Provides an executable hook that fetches…

permissive · top 15,000 on PyPI

mkdocs-auto-tag-plugin

Automatically assigns tags to MkDocs pages…

permissive · top 5,000 on PyPI

mkdocs-include-markdown-plugin

A MkDocs plugin that includes content from…

permissive · top 15,000 on PyPI

mkdocs-awesome-pages-plugin

A plugin for MkDocs that lets you customize…

permissive · top 5,000 on PyPI

formic2

Formic implements Apache Ant FileSet and glob…

copyleft · top 5,000 on PyPI

mkdocs-awesome-nav

A MkDocs plugin that lets you customize your…

permissive · top 5,000 on PyPI

mkdocs-htmlproofer-plugin

A MkDocs plugin that validates URLs and anchors…

permissive · top 15,000 on PyPI

mkdocs-simple-hooks

A MkDocs plugin that lets you define custom…

permissive · top 15,000 on PyPI

mkdocs-include-dir-to-nav

A MkDocs plugin that automatically expands…

permissive · top 15,000 on PyPI

filecheck

filecheck is a Python implementation of LLVM's…

permissive · top 15,000 on PyPI