--- id: sphinxcontrib-apidoc version: "0.6.0" license: BSD License license_treatment: permissive maintenance: active --- # sphinxcontrib-apidoc — A Sphinx extension for running 'sphinx-apidoc' on each build License: permissive · Maintenance: active · Downloads: 195.6K/mo ## What it is and what it does sphinxcontrib-apidoc is a Sphinx extension that integrates sphinx-apidoc into the documentation build process, eliminating the need to run sphinx-apidoc as a separate step before sphinx-build. Instead of configuring API documentation generation in tox.ini or shell scripts, you define settings directly in your Sphinx conf.py file. The extension accepts configuration options like apidoc_module_dir (the Python package to document), apidoc_output_dir (where to write generated files), apidoc_excluded_paths (modules to skip), and apidoc_separate_modules (whether each module gets its own page). It depends on pbr and Sphinx, supports Python 3.9+, and is actively maintained. However, the project documentation notes that Sphinx now includes a built-in extension with similar functionality, and existing users are encouraged to migrate to that instead. Use it for: - Simplify documentation builds by moving sphinx-apidoc configuration from tox.ini into conf.py, reducing build orchestration complexity. - Automatically generate API reference documentation for Python packages as part of the standard sphinx-build workflow. - Migrate from pbr's autodoc_tree feature to a standalone Sphinx extension without changing documentation structure. - Exclude test modules and private code from generated API docs using fnmatch-style path patterns. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A Sphinx extension that automatically runs sphinx-apidoc during documentation builds, generating API documentation from Python source code without requiring separate build steps. Yes, if you are already using Sphinx and want to simplify your documentation build pipeline by integrating sphinx-apidoc directly into conf.py. However, check whether Sphinx's built-in apidoc extension meets your needs first, as the project documentation recommends new users adopt that instead and notes this project will eventually be retired. ## Install pip install sphinxcontrib-apidoc uv add sphinxcontrib-apidoc poetry add sphinxcontrib-apidoc ## Installing sphinxcontrib-apidoc Before you install: Low install friction with only two runtime dependencies (pbr and Sphinx). Repository is active with a recent commit on 2026-06-08 and no known vulnerabilities. License in practice: BSD License (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects. Quickstart: pip install sphinxcontrib-apidoc # In doc/source/conf.py: extensions = ['sphinxcontrib.apidoc'] apidoc_module_dir = '../my_code' apidoc_output_dir = 'reference' apidoc_excluded_paths = ['tests'] Requires Python 3.9 or later; Sphinx must be installed as a runtime dependency. Verify before relying: - Whether the built-in Sphinx extension mentioned in the description has feature parity or significant differences that would affect migration decisions. - Performance characteristics when documenting large codebases with many modules. ## Package facts - License: BSD License (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 195.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags sphinx api documentation generation, sphinx-apidoc extension, automatic api docs sphinx, sphinx autodoc automation, python api documentation tool, sphinx build integration, api reference generator, sphinx-extension, api-documentation, build-automation [View on SkillFed](https://skillfed.io/packages/sphinxcontrib-apidoc) · [View on PyPI](https://pypi.org/project/sphinxcontrib-apidoc/)