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 option hiddenCategories #1415

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/lib/converter/plugins/CategoryPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export class CategoryPlugin extends ConverterComponent {
@BindOption("categorizeByGroup")
categorizeByGroup!: boolean;

@BindOption("hiddenCategories")
hiddenCategories!: string[];

// For use in static methods
static defaultCategory = "Other";
static WEIGHTS: string[] = [];
Expand Down
1 change: 1 addition & 0 deletions src/lib/utils/options/declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export interface TypeDocOptionMap {
defaultCategory: string;
categoryOrder: string[];
categorizeByGroup: boolean;
hiddenCategories: string[];
gitRevision: string;
gitRemote: string;
gaID: string;
Expand Down
6 changes: 6 additions & 0 deletions src/lib/utils/options/sources/typedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ export function addTypeDocOptions(options: Options) {
type: ParameterType.Boolean,
defaultValue: true,
});
options.addDeclaration({
name: "hiddenCategories",
help:
"Specifies categories that will be hidden.",
type: ParameterType.Array
});
options.addDeclaration({
name: "gitRevision",
help:
Expand Down