Debian Codegraph @

doc/source/contribution/documentation/c-api.md

raw symbols SCIP
1 # C API
2
3 The C API documentation is auto-generated from header files using
4 [Doxygen](https://www.doxygen.nl/).
5 You can view the generated documentation at
6 [C API Reference](https://groonga.org/docs/reference/api/index.html).
7
8 ## How to write
9
10 To contribute to the C API documentation, add Doxygen-style comments
11 to the header files in `include/groonga/`.
12
13 Example:
14
15 ```c
16 /**
17 * \brief Short description of the function
18 *
19 * Detailed description here.
20 *
21 * \param ctx The context
22 * \param arg Description of the argument
23 * \return Description of the return value
24 */
25 GRN_API grn_rc grn_function(grn_ctx *ctx, int arg);
26 ```
27
28 ## How to preview
29
30 For instructions on how to generate documentation and preview it,
31 see {doc}`introduction`.
32
33 The generated C API HTML documentation will be output to
34 `../groonga.doc/doc/en/html/reference/api/`.