Doxygen is not finding a defined group. But why? #77819
-
I'm sorry if this is a newbie question; it really must be, since I apparently haven't found any similar cases on my web or documentation searches, but I'd love to find an answer anyway. So here it goes: What's needed to make a Doxygen group "visible"?I'm new with Doxygen and can´t make the flipping API reference show up on the docs page. On a new file created for the feature I'm developing, /**
* @file
*
* @brief Public Constant Bandwidth Server (CBS) APIs.
*/
...
/**
* @defgroup cbs_apis Constant Bandwidth Server (CBS) APIs
* @{
*/
typedef void (* cbs_callback_t)(void *arg);
/**
* @cond INTERNAL_HIDDEN
*/
typedef struct {
cbs_callback_t function;
void *arg;
} cbs_job_t;
/** @endcond */
/**
* @brief pushes a job to a CBS queue.
*
* @param cbs Name of the CBS job queue.
* @param job_function Function of the job.
* @param cbs_period Argument to be passed to the job function.
* @param timeout Waiting period to push the job, or one of the special values K_NO_WAIT and K_FOREVER.
*
* @retval 0 Job pushed to the CBS queue.
* @retval -ENOMSG if CBS is not defined, returned without waiting or CBS queue purged.
* @retval -EAGAIN if waiting period timed out.
*/
int k_cbs_push_job(cbs_t *cbs, cbs_callback_t job_function, void *job_arg, k_timeout_t timeout);
/** @} */
... On the related API Reference
**************
.. doxygengroup:: cbs_apis However, when I try to build the documentation locally, this shows up: WARNING: doxygengroup: Cannot find group "cbs_apis" in doxygen xml output for project "Zephyr" What am I missing? I tried looking for how it was done with other documents but I couldn't spot a meaninful difference. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Any chance you could share a link to your fork so that I can have a look? |
Beta Was this translation helpful? Give feedback.
https://github.com/alexpaschoaletto/zephyr/blob/cbs-as-subsystem/include/zephyr/server/cbs.h#L22C1-L23C1
This macro isn't set when you're building the documentation so the whole section is skipped.
As it's just a header, the guard probably doesn't make sense anyway. But if you really need it, you may set the macro there: https://github.com/alexpaschoaletto/zephyr/blob/cbs-as-subsystem/doc/zephyr.doxyfile.in#L2351