skillfed

mkdocs-include-dir-to-nav

A MkDocs plugin include all file in dir to navigation

mkdocs-include-dir-to-nav v1.2.0 74.2K downloads/30d#14,859 on PyPI31
Permissive license MIT Abandoned released

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-nav

uv

uv add mkdocs-include-dir-to-nav

poetry

poetry add mkdocs-include-dir-to-nav

Installing 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

mkdocs directory navigation expansionmkdocs folder to nav pluginauto-generate mkdocs navigationmkdocs bulk file inclusionmkdocs nav from directory structure
mkdocs-plugindocumentation-automation

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

mkdocs-awesome-nav

A MkDocs plugin that lets you customize your…

permissive · top 5,000 on PyPI

mkdocs-awesome-pages-plugin

A plugin for MkDocs that lets you customize…

permissive · top 5,000 on PyPI

mkdocs-literate-nav

MkDocs plugin that lets you define site…

permissive · top 5,000 on PyPI

mkdocs-monorepo-plugin

Enables building multiple sets of documentation…

permissive · top 5,000 on PyPI

mkdocs-include-markdown-plugin

A MkDocs plugin that includes content from…

permissive · top 15,000 on PyPI

mkdocs-api-autonav

Automatically generates API reference…

permissive · top 15,000 on PyPI

mkdocs-multirepo-plugin

Merges documentation from multiple Git…

permissive · top 15,000 on PyPI

mkdocs-section-index

MkDocs plugin that makes section headers…

permissive · top 5,000 on PyPI

mkdocs-autorefs

A MkDocs plugin that automatically creates…

permissive · top 5,000 on PyPI

mdx-include

A Markdown extension that embeds local or…

permissive · top 15,000 on PyPI

Further reading