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.3.1.tar.gz
(31.1 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_c_autodoc-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b731d7e05ac0585f2ab8d0a4094c1b24d3e31768255f80782c1f5f398dbe0080 |
|
MD5 | 5306375c5b8df75c652df8e5d88bf9f9 |
|
BLAKE2b-256 | 3781b5a6d9a1b3de7e045edcb4e10c5e76dfb2add7261e697af5df306c17a27c |