apache / mynewt-documentation

Apache MyNewt Documentation
19 stars 47 forks source link

Missing sections in API documentation #125

Open wpiet opened 2 months ago

wpiet commented 2 months ago

Apparently, there is an issue with doxygen groups (Breathe's .. doxygengroup:: directive) used for embedding doxygen comments in the documentation.

If there are nested groups in some header file, referencing an outer group in RST file produces documentation only for this explicitly referenced group, excluding nested groups defined in the same scope.

Example: apache-mynewt-core/kernel/os/include/os/os_cputime.h contains a group OSCPUTime wrapped around the whole file. In that group there is another one OSCPUTime_cmp_macros. The outcome in API section is that the macros part is not documented at all.

I tried adding :inner: option to the directive, as described here, but it did not work.

Possible fix: Either add all groups explicitly to relevant RST files or change doxygen comments directly in header files, adjusting the groups - if possible.

wpiet commented 2 months ago

There is another issue (originating from doxygen) causing anonymous structs and unions to be not documented in XML output (which we use to generate PDF documentation and HTML one as well).