-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make API Doxygen documentation consistent #477
Comments
I recommend that we only include APIs in the generated documentation and have some questions about some of the Doxygen markup I found for some routines. Regarding routines to parse the resource table.These routines are documented with Doxygen markup in the source files - Are these intended to be APIs? If not, I would like to remove the Doxygen formatting from the function headers: These are not documented with Doxygen markup at all - If the three above routines ARE intended to be APIs, should these also?: static functionsThe following static functions are documented with Doxygen markup in the source files instead of header files. Are these intended to be APIs? rpmsg_virtio_return_buffer virtqueue routinesThe following are not static but are documented with Doxygen markup only in the source files - are these intended to be APIs? virtqueue_create Anything deemed not an API can maintain its i/o comments within the source code, but modified so it doesn't generate an entry in the final documentation. |
@arnopo @edmooring As I get further into this, I would like to also make the function description consistent in the function header. There are numerous ways the function description is formatted throughout the code: 1-
2 -
3-
Zephyr uses 3, which is what I am recommending. |
Hi @tammyleino
Good question! Do we export only user API documentation or document all APIs? I can see 2 way of doing this:
@wmamills , @edmooring : any opinion? |
+1 for your recommendation |
@tammyleino |
1 - Isolate all Doxygen comments for APIs to header files.
2 - Make Doxygen style consistent when documenting input/output parameters of APIs.
input parameters should be documented as follows:
@param <parameter> <tab> <description>
@return <description>
The text was updated successfully, but these errors were encountered: