mkdocs-include-dir-to-nav
A MkDocs plugin include all file in dir to navigation
What it is and what it does
This is a MkDocs plugin that solves a specific problem: MkDocs does not automatically expand folder references in navigation configuration into their contained files. This plugin scans your navigation entries during build or serve and replaces directory paths with all matching markdown files found within them, optionally organizing them into nested sections.
You configure it by listing folder paths in your mkdocs.yml nav section, and the plugin expands them on the fly without modifying your configuration file. It offers granular control through options like recursive scanning, file pattern matching, sorting, and whether to flatten subdirectories or preserve them as sections. The plugin supports all standard mkdocs file reference formats.
Use it for:
- Automatically populate a large documentation site's navigation from a folder structure without manually listing every file.
- Keep navigation configuration simple while maintaining a flexible docs directory layout that grows over time.
- Organize documentation into nested sections by folder while letting the plugin handle the nav entry generation.
- Filter which markdown files appear in navigation using regex patterns on filenames.
- Sort documentation pages alphabetically or in custom order without hand-editing the nav config.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A MkDocs plugin that automatically expands directory references in navigation configuration into individual markdown file entries, with options to control sorting, recursion, and hierarchy.
No. The project is abandoned with no commits since 2022-03-01. While it has low install friction and permissive licensing, the lack of maintenance means it will not receive bug fixes or compatibility updates as mkdocs evolves. For active documentation sites, consider maintained alternatives.
Install
mkdocs-include-dir-to-nav on PyPI
pip
pip install mkdocs-include-dir-to-navuv
uv add mkdocs-include-dir-to-navpoetry
poetry add mkdocs-include-dir-to-navInstalling mkdocs-include-dir-to-nav
Before you install
Low install friction with a single runtime dependency on mkdocs. However, the project is abandoned—last commit was 2022-03-01. No active maintenance means bug fixes or compatibility updates are unlikely.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install mkdocs-include-dir-to-nav
Then in mkdocs.yml:
plugins:
- search
- include_dir_to_nav
Requires mkdocs to be installed and a mkdocs.yml configuration file with a docs directory containing markdown files.
Verify before relying
- Compatibility with mkdocs versions released after 2022-03-01 is unknown.
- Whether the plugin works correctly with current Python versions is not documented.
- Active maintenance status and likelihood of future updates.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — mkdocs |
| Maintenance | abandoned — 1,627 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,230/month — #14,859 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mkdocs_include_dir_to_nav-1.2.0-py3-none-any.whl
Keywords: mkdocs, navigation, plugin, directory, folder
Tags
More Documentation packages
Docutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
mkdocs-awesome-navA MkDocs plugin that lets you customize your…
permissive · top 5,000 on PyPI
mkdocs-awesome-pages-pluginA plugin for MkDocs that lets you customize…
permissive · top 5,000 on PyPI
mkdocs-literate-navMkDocs plugin that lets you define site…
permissive · top 5,000 on PyPI
mkdocs-monorepo-pluginEnables building multiple sets of documentation…
permissive · top 5,000 on PyPI
mkdocs-include-markdown-pluginA MkDocs plugin that includes content from…
permissive · top 15,000 on PyPI
mkdocs-api-autonavAutomatically generates API reference…
permissive · top 15,000 on PyPI
mkdocs-multirepo-pluginMerges documentation from multiple Git…
permissive · top 15,000 on PyPI
mkdocs-section-indexMkDocs plugin that makes section headers…
permissive · top 5,000 on PyPI
mkdocs-autorefsA MkDocs plugin that automatically creates…
permissive · top 5,000 on PyPI
mdx-includeA Markdown extension that embeds local or…
permissive · top 15,000 on PyPI