Skip to content

opt-in doc tag #331

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

Closed
mikehaas763 opened this issue Nov 12, 2016 · 2 comments
Closed

opt-in doc tag #331

mikehaas763 opened this issue Nov 12, 2016 · 2 comments
Labels
plugin idea This feature may be best suited for a plugin wontfix Declining to implement

Comments

@mikehaas763
Copy link

I love typedoc, it's amazing.

I think it'd be nice to have an opt-in mode where no documentation is generated except for when a specific doc tag is in a comment. The specific doc tag could be configurable. This feature would help with documenting only modules/classes that are meant to be publicly consumable/exposed.

For a comparison, the dgeni documentation generator (with typical configuration/setup) will only generated documentation when there is a @ngdoc jsdoc tag in the comment.

Do you see this being viable?

@aciccarello
Copy link
Collaborator

@mikehaas763 That would be a good feature. I think there currently is an opt-out tag that you could use.

I imagine this would be a pretty simple feature for someone to implement. Currently this project is run entirely on PRs from the community.

@Gerrit0 Gerrit0 added plugin idea This feature may be best suited for a plugin wontfix Declining to implement labels Dec 30, 2019
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Dec 30, 2019

I'm adding a plugin tag + wontfix for this since TypeDoc already provides equally powerful methods for controlling exported symbols and this adds more complexity that doesn't seem to be

  1. You can use @internal (along with --stripInternal) to hide internal symbols that must be exported. You should already be using this if you need to export internal symbols as it has first class support by TypeScript.
  2. You can use @ignore or @hidden to hide symbols
  3. You can use --excludeNotExported to remove all non-exported symbols.
  4. With Config option to exclude not explicitly documented symbols #995 it will be possible to exclude non-documented symbols
  5. With Document only a library's exported files from a given starting point #639, you will be able to further restrict docs by an entry point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin idea This feature may be best suited for a plugin wontfix Declining to implement
Projects
None yet
Development

No branches or pull requests

3 participants