Skip to content

Installation

Basic install

pip install mkdocs-cdoc

This gives you the plugin with regex-based parsing, which works without any system dependencies.

For full-accuracy parsing with function signatures, type information, and struct member details, install libclang:

sudo apt install python3-clang libclang-dev
brew install llvm
pip install mkdocs-cdoc[clang]

Verify

Check that the plugin is available:

python -c "import mkdocs_cdoc; print(mkdocs_cdoc.__version__)"

To verify clang is detected:

python -c "from mkdocs_cdoc.parser import CLANG_AVAILABLE; print('clang:', CLANG_AVAILABLE)"

Requirements

  • Python 3.9+
  • MkDocs 1.5+
  • libclang (optional but recommended)