Skip to content

Adding doxygen documentation for VTR utilities #1597

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

Merged
merged 6 commits into from
Feb 22, 2021

Conversation

MohamedElgammal
Copy link
Contributor

@MohamedElgammal MohamedElgammal commented Nov 19, 2020

Description

In this PR, I am adding a documentation for the supported VTR utilities in libs/libvtrutil/ path. The documentation was added by adding doxygen-compatible comments to the source.

The main target of the docs are:

  • Give a high-level comment about each utility
  • Give a detailed description of the public method of each utility

Motivation and Context

This PR should help new developers to easily understand the utilities supported by vtr and use them more efficiently.

How Has This Been Tested?

To generate the docs:

  • clone the branch
  • cd docs/ directory
  • make html
  • The updated html is in doc/_build/html/index.html

The newly added documentations are in VPR API section, under Utilities title

Types of changes

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

@MohamedElgammal MohamedElgammal changed the title Vtrutil doxygen comments Adding doxygen documentation for VTR utilities Nov 19, 2020
Copy link
Contributor

@kmurray kmurray left a comment

Choose a reason for hiding this comment

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

Overall looks good Mohamed.

It seems like all the .rst files are under api/vpr, since these are all part of libvtrutil (which is separate from VPR), it seems like they should be under doc/src/api/vtrutil or doc/src/api/libvtrutil.

Similarly in RTD, this documentation shows up under the VPR API header, It should probably be under a separate heading (e.g. vtrutil API)

@github-actions github-actions bot removed the docs Documentation label Nov 19, 2020
@MohamedElgammal MohamedElgammal added the docs Documentation label Nov 19, 2020
@github-actions github-actions bot removed the docs Documentation label Nov 19, 2020
@MohamedElgammal
Copy link
Contributor Author

@kmurray I have moved the docs to a new header that is called VTRUTIL API instead of VPR API and changed the .rst files paths accordingly.

@acomodi acomodi self-requested a review December 3, 2020 19:09
Copy link
Collaborator

@acomodi acomodi left a comment

Choose a reason for hiding this comment

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

LGTM. There are some typos, but the doxygen setup looks good. I can see that the docs generated do contain the full VTR APIs, and that looks good as well.

There are several API header files that do lack a file-scope doxygen comment. Is this intended to be left out? Not a big issue, but there is a little inconsistency with other files which do have a file-scope doxygen comment.

@@ -5,19 +5,21 @@

Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing a file description? (Not sure if it is needed in this case, but it is worth keeping consistency with other headers)

@MohamedElgammal MohamedElgammal force-pushed the vtrutil_doxygen_comments branch from 895964c to 4b3d0ba Compare February 18, 2021 02:13
@MohamedElgammal MohamedElgammal merged commit 7be7cbe into master Feb 22, 2021
@MohamedElgammal MohamedElgammal deleted the vtrutil_doxygen_comments branch February 22, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants