--- id: linuxdoc version: "20260504" license: AGPL-3.0-or-later license_treatment: agpl maintenance: active --- # linuxdoc — Sphinx-doc extensions & tools to extract documentation from C/C++ source file comments. License: agpl · Maintenance: active · Downloads: 155.0K/mo ## What it is and what it does LinuxDoc is a Sphinx extension library that parses C/C++ source files and extracts documentation from inline comments, converting them into structured documentation that Sphinx can process. It originated in the Linux kernel documentation project but works as a general-purpose tool in any Sphinx-based documentation setup. The package provides both Sphinx extensions for integration into doc builds and command-line utilities for standalone extraction. The package depends on docutils, fspath, setuptools, and sphinx as runtime requirements. It targets Python 3.10 and later, supporting both CPython and PyPy implementations. The tool is designed for developers who want to maintain API documentation directly in source code comments and have it automatically rendered into polished documentation alongside other Sphinx-generated content. Use it for: - Generate API documentation for C/C++ libraries by parsing comments embedded in source files - Integrate source code documentation into a Sphinx-based project without maintaining separate doc files - Build reference manuals from large C projects that use structured comment conventions - Automate documentation extraction in CI/CD pipelines using the command-line tools - Maintain single-source documentation where code comments serve as the authoritative reference ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Sphinx-doc extensions and command-line tools that extract documentation from C/C++ source file comments for structured doc generation. Yes, if you maintain C/C++ code and use Sphinx for documentation. The package is actively maintained, has no known vulnerabilities, and low install friction. The AGPL-3.0-or-later license requires careful review if you plan to redistribute or modify the package, but poses no barrier to using it as a documentation tool in your own projects. ## Install pip install linuxdoc uv add linuxdoc poetry add linuxdoc ## Installing linuxdoc Before you install: Low friction install via pip with four runtime dependencies (docutils, fspath, setuptools, sphinx). Active maintenance with recent release and ongoing repository commits. License in practice: Distributed under AGPL-3.0-or-later; users must comply with copyleft obligations if they modify or redistribute the package or derivative works. Quickstart: python -m pip install --user -U linuxdoc import linuxdoc # Use as Sphinx extension or via command-line tools Requires Python 3.10 or later; designed for use with Sphinx-based documentation projects Verify before relying: - Whether the C/C++ comment extraction supports specific documentation formats beyond kernel-doc style - Performance characteristics when processing large codebases - Exact Sphinx version compatibility requirements ## Package facts - License: AGPL-3.0-or-later (agpl) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 155.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags sphinx extension c++ documentation, extract docs from source comments, kernel-doc sphinx integration, c code comment documentation, source code comment parser, sphinx documentation extraction, linux kernel doc tools, sphinx-extension, c-documentation, kernel-doc [View on SkillFed](https://skillfed.io/packages/linuxdoc) · [View on PyPI](https://pypi.org/project/linuxdoc/)