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

Natspec-only docs #414

Open
theodale opened this issue Oct 13, 2022 · 4 comments
Open

Natspec-only docs #414

theodale opened this issue Oct 13, 2022 · 4 comments

Comments

@theodale
Copy link

Could we have an config option to only generate docs for items with natspec documentation, i.e. contracts, interfaces, libraries, functions, and events. I comment all these accordingly, but often have uncommented internal/private items. As such, the generated docs have many redundant entries. It would be nice to have a natspec only option.

@frangio
Copy link
Contributor

frangio commented Nov 2, 2022

This is an interesting idea. You should be able to implement it in solidity-docgen 0.6 with a custom template that renders conditionally if item.documentation is defined.

@dionysuzx
Copy link

dionysuzx commented Dec 27, 2022

This is an interesting idea. You should be able to implement it in solidity-docgen 0.6 with a custom template that renders conditionally if item.documentation is defined.

do you know what would be needed to conditionally render / omit private/internal items? i noticed item.documentation will simply exclude the @dev tags.

@frangio
Copy link
Contributor

frangio commented Dec 29, 2022

Private items should always be omitted automatically. It doesn't make sense to document them as they are not part of the interface.

Internal items you can omit by filter by item.visibility.

Is this related to this issue though? If not, please open another issue I can share more details.

@theodale
Copy link
Author

I also think it should be default

@frangio frangio reopened this Dec 30, 2022
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

No branches or pull requests

3 participants