Skip to content

Commit 481d82f

Browse files
rename the key how docs are named (#1390)
1 parent a6fe44a commit 481d82f

File tree

2 files changed

+59
-59
lines changed

2 files changed

+59
-59
lines changed

build/generate-docs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ type JsonExpressionSyntax = {
1616
}[];
1717
parameters?: {
1818
name: string;
19-
type?: string;
20-
description?: string;
19+
type: string;
20+
doc?: string;
2121
}[];
2222
}
2323

@@ -139,8 +139,8 @@ function expressionSyntaxToMarkdown(key: string, syntax: JsonExpressionSyntax) {
139139
const type = parameter.type.replaceAll('<', '&lt;').replaceAll('>', '&gt;');
140140
markdown += `: *${type}*`;
141141
}
142-
if (parameter.description) {
143-
markdown += ` — ${parameter.description}`;
142+
if (parameter.doc) {
143+
markdown += ` — ${parameter.doc}`;
144144
}
145145
markdown += '\n';
146146
}

0 commit comments

Comments
 (0)