-
-
Notifications
You must be signed in to change notification settings - Fork 751
Description
Search terms
Function type aliases, comment tags, category.
Expected Behavior
@category tag behavior is consistent across different entities. In particular, it's visibility in the documentation is governed by the same rule.
Prior to 0.22.6 it was properly used to categorize documentation entities and was not shown under any of them and that makes total sense for me.
Actual Behavior
Version 0.22.6 still uses it to categorize documentation entities, but also started to include it under function type aliases specifically (other type aliases and functions are unaffected by the change and no @category tag is shown for them).
Apparently this is caused by #1734 and 0d04c08
I see no sense to clutter the docs with this specific tag since it is used for grouping already.
If there is a good reason to show it then there should be clean rules and a way to override them.
Current behavior is very surprising.
Steps to reproduce the bug
Version 0.22.6 (0.22.5 is fine)
Code like this:
/**
* Foo...
*
* @param data - Data...
*
* @category My category
*/
export type Foo<T,R> = (data: T) => R;Typedoc options:
"typedocOptions": {
"categorizeByGroup": false,
"categoryOrder": [
"My category",
"..."
],
"customCss": "./assets/docs.css",
"defaultCategory": "...",
"disableSources": true,
"entryPoints": [
"src/foo.ts",
"src/bar.ts"
],
"includeVersion": true,
"out": "docs",
"sort": "alphabetical"
},Environment
- Typedoc version: 0.22.6
- TypeScript version: 4.4.4
- Node.js version: 12.21.0
- OS: Windows 10