A sphinx autodoc extension for c modules
Project description
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:
.. c:function:: int my_adding_function(int a, int b)
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`
Requires
Similar Tools
Full Documentation
The complete documentation can be found at https://sphinx-c-autodoc.readthedocs.io/en/latest
Project details
Release history Release notifications | RSS feed
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-0.1.0.tar.gz
(19.4 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_c_autodoc-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 834a955681c8d6b47a0b7dab841e51cf8ce76712043bf4376f65ef2d4a0eb96a |
|
MD5 | 93b7e819192b703e0ed8df9537dbbd2a |
|
BLAKE2b-256 | f9a07bb8e14dc2313c00a2f3ff2091f1be4a2197ffdb695a55dbbdea097b4080 |