typedoc icon indicating copy to clipboard operation
typedoc copied to clipboard

Add New Option hiddenCategories

Open tobiasschweizer opened this issue 4 years ago • 2 comments

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 avatar Dec 01 '20 15:12 tobiasschweizer

This is a fairly simple change:

Gerrit0 avatar Dec 05 '20 18:12 Gerrit0

@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.

tobiasschweizer avatar Dec 07 '20 08:12 tobiasschweizer

? Hope every thing is good

Dayday10 avatar Sep 11 '23 02:09 Dayday10

I am not working on this anymore ...

tobiasschweizer avatar Sep 11 '23 06:09 tobiasschweizer