--- id: mkdocs-api-autonav version: "0.4.0" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # mkdocs-api-autonav — Autogenerate API docs with mkdocstrings, including nav License: permissive · Maintenance: active · Downloads: 130.7K/mo ## What it is and what it does mkdocs-api-autonav is a plugin for mkdocs that automatically discovers Python modules and generates API reference documentation pages with corresponding navigation entries, using mkdocstrings under the hood. Instead of manually creating documentation files and nav entries for each module and submodule, you point the plugin at your source directories and it handles page generation and navigation structure automatically. The plugin integrates with your existing mkdocs.yml nav configuration—it can replace a placeholder entry, append to an existing section, or create a new API Reference section. It supports fine-grained control over which modules to include or exclude, allows per-module docstring rendering options (docstring style, heading levels, etc.), and handles edge cases like implicit namespace packages. It's designed to work well with mkdocs-material's navigation features and plays nicely with mkdocstrings' extensive configuration options. Use it for: - Generate complete API documentation for a multi-module Python library without manually creating or maintaining nav entries. - Automatically include all submodules in your API docs while excluding private modules and applying consistent docstring formatting. - Integrate API documentation into a larger mkdocs site where the API section can be repositioned or extended with additional pages. - Apply different docstring styles or rendering options to specific modules using regex-based module_options configuration. - Maintain API docs that stay in sync with your codebase structure without manual updates to documentation files or navigation. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Automatically generates API reference documentation and navigation for Python modules using mkdocstrings, eliminating the need for manual navigation configuration or custom scripts. Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real pain point for projects using mkdocs and mkdocstrings. It's particularly valuable if you have multiple modules or frequently add new submodules—it eliminates boilerplate documentation maintenance. The permissive BSD license poses no restrictions. ## Install pip install mkdocs-api-autonav uv add mkdocs-api-autonav poetry add mkdocs-api-autonav ## Installing mkdocs-api-autonav Before you install: Low install friction with a pure-Python wheel distribution. The package is actively maintained with recent commits and has been in active development since early 2025. Depends on mkdocs, mkdocstrings-python, and pyyaml—all stable, widely-used libraries. License in practice: BSD-3-Clause is permissive and poses no restrictions on commercial or proprietary use. You can incorporate this package into closed-source projects without license obligations. Quickstart: pip install mkdocs-api-autonav # In mkdocs.yml: plugins: - search - mkdocstrings: - api-autonav: modules: ['src/my_library'] Requires mkdocs>=1.6 (released Apr 20, 2024) and Python >=3.9. Your project must have mkdocstrings installed and configured. Verify before relying: - Whether the plugin handles complex nested module hierarchies without performance degradation. - How well it integrates with other mkdocs plugins beyond mkdocs-awesome-nav. - Whether generated navigation scales well for very large codebases with many submodules. ## Package facts - License: BSD-3-Clause (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 130.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags auto-generate api documentation, mkdocs api reference navigation, python module documentation generator, mkdocstrings plugin automation, api docs with automatic nav, mkdocs-plugin, api-documentation, code-generation [View on SkillFed](https://skillfed.io/packages/mkdocs-api-autonav) · [View on PyPI](https://pypi.org/project/mkdocs-api-autonav/)