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:
.. 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-1.1.1.tar.gz
(32.4 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_c_autodoc-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7888f7a2e45d82f55717d416f347690a8efd38bfe817240cc95b0cb1438679 |
|
MD5 | 5c086517d6be8190dafd2fcaac738291 |
|
BLAKE2b-256 | ae381b01fbfdeffe84a5b60ad20af42576d1d499ef827b77945164358e353a6c |