Skip to content

Commit c50eb66

Browse files
committed
chore(all): fix models script
1 parent dbea077 commit c50eb66

File tree

8 files changed

+17
-8
lines changed

8 files changed

+17
-8
lines changed

devtools/packages/prebuild-options/tasks/generate-models.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,14 @@ async function writeTypeDocDeclarations(
3232
.filter(
3333
([name, option]) =>
3434
(option as any).type === ParameterType.Mixed &&
35-
(option as any).defaultValue &&
36-
Object.keys((option as any).defaultValue).length,
35+
(option as any).defaultValue,
3736
)
3837
.map(([name, option]) => capitalize(name, false));
3938

4039
const out: string[] = [];
4140

4241
out.push(`// THIS FILE IS AUTO GENERATED FROM THE OPTIONS CONFIG. DO NOT EDIT DIRECTLY.
43-
import { ManuallyValidatedOption } from 'typedoc';
44-
${docsConfig.optionsPath === 'plugins/frontmatter' ? `import { ToStringOptions } from 'yaml';` : ''}
45-
`);
42+
import { ManuallyValidatedOption } from 'typedoc';${docsConfig.optionsPath === 'plugins/frontmatter' ? `\nimport { ToStringOptions } from 'yaml';` : ''}`);
4643

4744
if (manuallyValidatedOptions.length) {
4845
manuallyValidatedOptions.forEach((option: any) => {

docs/pages/plugins/remark/options.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Callout } from 'nextra/components';
1+
import { Callout } from "nextra/components";
22

33
# Options
44

@@ -16,7 +16,15 @@ Options can be provided as either an array of strings or an array of strings wit
1616

1717
```json filename="typedoc.json"
1818
{
19-
"remarkPlugins": ["remark-github"]
19+
"remarkPlugins": [
20+
"remark-github",
21+
[
22+
"remark-toc",
23+
{
24+
"maxDepth": 3
25+
}
26+
]
27+
]
2028
}
2129
```
2230

packages/typedoc-github-wiki-theme/src/types/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* THIS FILE IS AUTO GENERATED FROM THE OPTIONS CONFIG. DO NOT EDIT DIRECTLY
33
*/
4+
45
/**
56
* Describes the options declared by the plugin.
67
*/

packages/typedoc-gitlab-wiki-theme/src/types/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* THIS FILE IS AUTO GENERATED FROM THE OPTIONS CONFIG. DO NOT EDIT DIRECTLY
33
*/
4+
45
/**
56
* Describes the options declared by the plugin.
67
*/

packages/typedoc-plugin-frontmatter/src/_typedoc.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// THIS FILE IS AUTO GENERATED FROM THE OPTIONS CONFIG. DO NOT EDIT DIRECTLY.
22
import { ManuallyValidatedOption } from 'typedoc';
33
import { ToStringOptions } from 'yaml';
4-
54
declare module 'typedoc' {
65
export interface TypeDocOptionMap {
76
frontmatterCommentTags: string[];

packages/typedoc-plugin-markdown/src/types/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* THIS FILE IS AUTO GENERATED FROM THE OPTIONS CONFIG. DO NOT EDIT DIRECTLY
33
*/
4+
45
/**
56
* Describes the options declared by the plugin.
67
*/

packages/typedoc-plugin-remark/src/types/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* THIS FILE IS AUTO GENERATED FROM THE OPTIONS CONFIG. DO NOT EDIT DIRECTLY
33
*/
4+
45
/**
56
* Describes the options declared by the plugin.
67
*/

packages/typedoc-vitepress-theme/src/types/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* THIS FILE IS AUTO GENERATED FROM THE OPTIONS CONFIG. DO NOT EDIT DIRECTLY
33
*/
4+
45
/**
56
* Describes the options declared by the plugin.
67
*/

0 commit comments

Comments
 (0)