Skip to content
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

Fix API documentation for clean rosdoc2 build #139

Merged
merged 8 commits into from
Aug 3, 2021
Merged

Fix API documentation for clean rosdoc2 build #139

merged 8 commits into from
Aug 3, 2021

Conversation

aprotyas
Copy link
Member

@aprotyas aprotyas commented Aug 2, 2021

This PR introduces changes which resolve multiple errors/warnings on rosdoc2 build invocations to generate API documentation for rcpputils.

Namely:

  • Doxygen configuration:
    • Inclusion of all required files (including markdown files).
    • Generation of XML tags.
  • rcpputils::fs: Missing parameters in function header.
  • rcpputils::shared_library: Remove @copydoc directive.
  • rcpputils::split: Conditionally exclude split signature with template parameter list since breathe has a tough time parsing said list. Once Handle parsing errors breathe-doc/breathe#711 is merged, the @cond/@endcond directives can be removed.
  • rcpputils::thread_safety_annotations: There seems to be no straightforward method to address the "anonymous hyperlink" warning generated because of the double trailing underscores in the RCPPUTILS_THREAD_ANNOTATION_ATTRIBUTE__ macro. As such, this macro has been conditionally excluded.

Abrar Rahman Protyasha added 7 commits August 2, 2021 12:23
Previously, Doxygen was returning warnings about undocumented function
parameters, which this commit addresses.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
Signed-off-by: Abrar Rahman Protyasha <[email protected]>
Signed-off-by: Abrar Rahman Protyasha <[email protected]>
`split(const std::string&, char, InsertIterator&, bool)` was used
privately by `split(const std::string&, char, bool)`. Since the latter
signature was caushing `breathe` to choke at the template paramater list
anyway, it was conditionally excluded from Doxygen visibility.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
The macro in question produces an anonymous hyperlink error when exhale
produces the `Define THREAD_ANNOTATION_ATTRIBUTE__` statement in its
generated `.rst` file. Since this macro itself is not used publicly, and
there is no obvious approach to fix the warning about anonymous
hpyerlinks, I have conditionally excluded that macro from Doxygen.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
@aprotyas aprotyas self-assigned this Aug 2, 2021
@aprotyas
Copy link
Member Author

aprotyas commented Aug 2, 2021

Not running CI since all changes introduced in this PR are for documentation.

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One slightly large thing to change, then this will be ready to go.

include/rcpputils/filesystem_helper.hpp Outdated Show resolved Hide resolved
This commit targets the `filesystem_helper.hpp` and the `asserts.hpp`
headers, to increase uniformity of doxygen commands across the package.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
@aprotyas aprotyas merged commit cd4ce08 into ros2:master Aug 3, 2021
@aprotyas aprotyas deleted the aprotyas/fix_api_docs branch August 3, 2021 16:04
@ros-discourse
Copy link

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2021-9-16/22372/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants