Skip to main content

cpdocs

cpdocs generates semantic, versioned API documentation for C, C++, CUDA, HIP, Fortran, Python and Rust projects.

It asks the project's build system, through a small JSON contract, for the concrete feature sets to document. It builds each feature set independently, consumes the resulting manifest, extracts the API with Clang for C-family languages, source modules for Fortran, ast for Python or rustdoc JSON for Rust, and merges the results. Implementation files from the manifest are kept in the file hierarchy without becoming API entities. Feature-set availability and API language are tracked independently. The versions to publish are an explicit ordered list in cpdocs.yml.

cpdocs build          # document the working tree into build/cpdocs/current
cpdocs versions       # document the configured versions
properdocs build      # project website with the versioned API mounted

The configuration lives in docs/cpdocs.yml, the API introduction in docs/api/index.md and the ProperDocs pages in docs/web. The documentation starts at docs/web/index.md; the examples/ directory holds standalone projects that the test suite builds.

Development

uv sync
uv run pytest
uv run ruff check && uv run ruff format --check

The C and C++ tests need clang++, cmake and ninja. Building the Rust example/site also needs the nightly toolchain pinned by examples/rust-basic/rust-toolchain.toml.

Metadata

Release files for cpdocs 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cpdocs 0.3.4
File Size Uploaded
cpdocs-0.3.4.tar.gz 160.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cpdocs 0.3.4
File Interpreter ABI Platform
cpdocs-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 253.5 kB

Release files / cpdocs-0.3.4.tar.gz

Download URL cpdocs-0.3.4.tar.gz
Size 160.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6ee032986b6b8d9e2b9e54baf4890802c4e53056b523887a77c242ddf1fc74e3
BLAKE2b-256 checksum
How to use checksums
c049fea50707307f317ecaf5d3246ff85f220b3e39d8a82d75b49a309e4b3d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"libc":{"lib":"glibc","version":"2.44"},"name":"Arch Linux"},"implementation":{"name":"CPython","version":"3.14.7"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.6.4 25 Aug 2026","python":"3.14.7","system":{"name":"Linux","release":"6.18.54-1-lts"}} HTTPX2/2.13.1

Release files / cpdocs-0.3.4-py3-none-any.whl

Download URL cpdocs-0.3.4-py3-none-any.whl
Size 92.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61c18c33bac921d22e304852ff20aa829b628f41a9b97b8668c343e1bb7ee92b
BLAKE2b-256 checksum
How to use checksums
c5ed121aeea86c1b5cb3137bbd50f93a11a11157968ce1b088c195db5653349d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"libc":{"lib":"glibc","version":"2.44"},"name":"Arch Linux"},"implementation":{"name":"CPython","version":"3.14.7"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.6.4 25 Aug 2026","python":"3.14.7","system":{"name":"Linux","release":"6.18.54-1-lts"}} HTTPX2/2.13.1

Release history Release notifications | RSS feed

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page