Skip to main content

A sphinx autodoc extension for c modules

Project description

Build Status Coverage Code Style Documentation Status

Dual-licensed under MIT or the UNLICENSE.

A basic attempt at extending Sphinx and autodoc to work with C files.

The idea is to add support for similar directives that autodoc provides. i.e.

A function in my_c_file.c:

/**
 * A simple function that adds.
 *
 * @param a: The initial value
 * @param b: The value to add to `a`
 *
 * @returns The sum of `a` and `b`.
 *
 */
int my_adding_function(int a, int b) {
    return a + b;
    }

Could be referenced in documentation as:

.. autocfunction:: my_c_file.c::my_adding_function

With the resulting documentation output of:

int my_adding_function(int a, int b)

A simple function that adds.

Parameters:
  • a - The initial value

  • b - The value to add to a

Returns:

The sum of a and b

Requires

Similar Tools

  • hawkmoth a sphinx extension that which will document all of a C file. It supports being able to regex list files and have those files be documented.

  • breathe A doxygen output to sphinx tool.

Full Documentation

The complete documentation can be found at https://sphinx-c-autodoc.readthedocs.io/en/latest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_c_autodoc-1.6.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_c_autodoc-1.6.0-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_c_autodoc-1.6.0.tar.gz.

File metadata

  • Download URL: sphinx_c_autodoc-1.6.0.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_c_autodoc-1.6.0.tar.gz
Algorithm Hash digest
SHA256 d0c2e374330987592c54a3e5d74f17fdbe24cd3c53941b402aeb09ed95f8930d
MD5 1a567b06d3603601ae2a50da351b9357
BLAKE2b-256 11a3f0204c80a97ae034cd8f9b489f0561655c301f8efc83ee155e267f2d54ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_c_autodoc-1.6.0.tar.gz:

Publisher: release.yml on speedyleion/sphinx-c-autodoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_c_autodoc-1.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_c_autodoc-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6344bcf264dd950c234830c9b690388b71f090aa8057dd5070fc39b0716b1737
MD5 da624c5cf18683c49c41d35189b5c60f
BLAKE2b-256 56f604832cca338efa3b590584055be6fa0b96234c6f49e14378d9ceb5399a81

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_c_autodoc-1.6.0-py3-none-any.whl:

Publisher: release.yml on speedyleion/sphinx-c-autodoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page