C Autodoc Extension For Sphinx.¶
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.
Contents:
- Directives
- Example C File
- Configuring
- Napoleon
- Viewcode
- apidoc
- Minimum Supported Versions
- Change Log
- v1.4.1-dev (unreleased)
- v1.4.0 (2024-10-16)
- v1.3.0 (2023-09-21)
- v1.2.2 (2023-06-28)
- v1.2.1 (2023-06-12)
- v1.2.0 (2023-06-11)
- v1.1.1 (2022-12-21)
- v1.1.0 (2022-12-20)
- v1.0.0 (2021-09-12)
- v0.4.0 (2020-12-27)
- v0.3.1 (2020-10-24)
- v0.3.0 (2020-08-22)
- v0.2.0 (2020-04-04)
- v0.1.1 (2020-03-15)
- v0.1.0 (2020-03-07)
- Developing