A sphinx autodoc extension for c modules
Project description
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
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-1.3.0.tar.gz
(31.6 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_c_autodoc-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199c6a3ced0b32fa179d82d5fbe5586ec6c51cc2447d0fa0fda67a0bd8967962 |
|
MD5 | 5fb785fa8ff72d0fe0e0ce9c6f83eebb |
|
BLAKE2b-256 | aa657300cc250a553f9814bef14e69c40b70a5ba9a3e7eb0b7800f215e3d5441 |