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

Add New Option hiddenCategories #1407

Closed
tobiasschweizer opened this issue Dec 1, 2020 · 4 comments
Closed

Add New Option hiddenCategories #1407

tobiasschweizer opened this issue Dec 1, 2020 · 4 comments
Labels
enhancement Improved functionality help wanted Contributions are especially encouraged

Comments

@tobiasschweizer
Copy link

Search Terms

Category, @category, hide, internal,

Problem

I would like to have an additional option to hide certain categories.

There is an existing typedoc option --stripInternal based on the tag @internal.
But this is not very flexible and it is actually based on a TypeScript compiler option which causes declarations not to emit:

This is an internal compiler option; use at your own risk, because the compiler does not check that the result is valid.

Suggested Solution

I suggest adding a new typedoc option hiddenCategories which takes a list of categories as an input and ignores those when building the docs.

Without touching the source, different docs could be built for different purposes. For example, you could build docs that only cover classes that are directly used by your users, and more extensive docs for active maintainers of your project.

@tobiasschweizer tobiasschweizer added the enhancement Improved functionality label Dec 1, 2020
@Gerrit0 Gerrit0 added good first issue Easier issue for first time contributors help wanted Contributions are especially encouraged labels Dec 5, 2020
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Dec 5, 2020

This is a fairly simple change:

@tobiasschweizer
Copy link
Author

@Gerrit0 Ok, I can give it a try. I will fork the repo and try to submit a PR.
If I struggle, I will let you know.

@Dayday10
Copy link

? Hope every thing is good

@tobiasschweizer
Copy link
Author

I am not working on this anymore ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improved functionality help wanted Contributions are especially encouraged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants