Skip to content

Commit

Permalink
feat: create 'pretty' option
Browse files Browse the repository at this point in the history
  • Loading branch information
cAttte authored and Gerrit0 committed Apr 10, 2021
1 parent 2103f34 commit b3c856e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/options/declaration.ts
Expand Up @@ -55,6 +55,7 @@ export interface TypeDocOptionMap {

out: string;
json: string;
pretty: boolean;

theme: string;
name: string;
Expand Down
15 changes: 11 additions & 4 deletions src/lib/utils/options/sources/typedoc.ts
Expand Up @@ -14,7 +14,7 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
options.addDeclaration({
name: "tsconfig",
help:
"Specify a typescript config file that should be loaded. If not specified TypeDoc will look for 'tsconfig.json' in the current directory.",
"Specify a TypeScript config file that should be loaded. If not specified TypeDoc will look for 'tsconfig.json' in the current directory.",
hint: ParameterHint.File,
defaultValue: process.cwd(),
});
Expand Down Expand Up @@ -53,7 +53,7 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
options.addDeclaration({
name: "excludeInternal",
help:
"Prevent symbols that marked with @internal from being documented.",
"Prevent symbols that are marked with @internal from being documented.",
type: ParameterType.Boolean,
});
options.addDeclaration({
Expand Down Expand Up @@ -110,14 +110,21 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
options.addDeclaration({
name: "json",
help:
"Specifies the location and file name a json file describing the project is written to.",
"Specifies the location and filename a JSON file describing the project is written to.",
hint: ParameterHint.File,
});
options.addDeclaration({
name: "pretty",
help:
"Specifies whether the output JSON should be formatted with tabs.",
type: ParameterType.Boolean,
defaultValue: true,
});

options.addDeclaration({
name: "theme",
help:
"Specify the path to the theme that should be used or 'default' or 'minimal' to use built-in themes.",
"Specify the path to the theme that should be used, or 'default' or 'minimal' to use built-in themes.",
type: ParameterType.String,
defaultValue: "default",
});
Expand Down

0 comments on commit b3c856e

Please sign in to comment.