-
Notifications
You must be signed in to change notification settings - Fork 22
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
Hide Private Members? #5
Comments
Currently there is no way to hide private members in the generated docs. This is something we've considered adding but we also want to keep configuration options and complexity to a minimum. Perhaps we could add a new option that shows private members by default and has the option to hide them. Something like |
That would actually be fine. |
We will look to add this in the next release, but we can't promise anything yet. If you work at a company that needs this feature, please reach out to us at contact@hdoc.io and we can prioritize this. Thank you. |
In case anyone else ends up here looking for a solution — I found it was pretty simple to do a basic implementation of "hide private members", just two places need to be modified: This doesn't exclude private members from the search index, which would probably be a more correct solution, but this quick hack worked out alright! |
Looks like it's time to upstream a solution to this issue, given that people are out there patching hdoc to solve it. Look for this in the next release. |
@jm4games @jtbandes there's now a fix for this in the mainline with the latest version 1.2.3. Check out the release notes for more details. I have also credited both of you in the release notes. Thank you! |
Thanks a lot, much appreciated!! |
Thanks for the update. I just tried this out, but it is failing with:
https://github.com/foxglove/mcap/runs/6764834723?check_suite_focus=true You can reproduce the error by running |
Thank you for reporting the issue and providing repro docs. Looks like something slipped by our internal CI. We’ll take a look and get a fix out ASAP. |
@jtbandes this issue should be fixed in version 1.2.4, which was just released. It was a logic bug, and there are now unit tests to cover this functionality. You are credited in the release notes. Thank you for your help! |
**Public-Facing Changes** None **Description** Use new `ignore_private_members` feature from hdoc/hdoc#5 (comment)
Thanks, that's working now! |
Is there a way we could prevent including private members with documentation? They kind of clutter the docs generated with members that developers can't even use.
The text was updated successfully, but these errors were encountered: