Skip to content

Improve carputils Doxygen code documentation

I would like to discuss some propositions for improving the carputils Doxygen code documentation.

Here are some ideas I have implemented, but which could certainly be improved:

  • Artificially group the scripts from the bin folder in Doxygen, i.e. from this: Screenshot_2024-02-06_at_18.30.34 To this: Screenshot_2024-02-06_at_18.30.13 (At the end, I guess we would like to have only bin and carputils at the top level)

Pros: clearer separation between the carputils module and the executables that are not part of the module itself.

Cons: the way it's done causes Doxygen to add a bin prefix in functions, classes and variables documentation. I don't know if it is acceptable: Screenshot_2024-02-06_at_18.31.27 To Screenshot_2024-02-06_at_18.31.15

  • Add description for the executables in the Doxygen documentation. From: Screenshot_2024-02-06_at_18.30.34 To: Screenshot_2024-02-06_at_18.30.47 In terms of code: From
#!/usr/bin/env python

"""
Generate a bullseye plot for given data.
"""

To

#!/usr/bin/env python

"""
@package bin.bullseye
Generate a bullseye plot for given data.
"""

These changes are implemented here

Do you think these changes could be integrated as is?