Skip to content

Commit 0a0a91c

Browse files
committed
show functions table first
1 parent 4d747b1 commit 0a0a91c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,11 @@ export class MarkdownDocumenter {
918918
}
919919
}
920920

921+
if (functionsTable.rows.length > 0) {
922+
output.push(new DocHeading({ configuration, title: 'Functions' }));
923+
output.push(functionsTable);
924+
}
925+
921926
if (classesTable.rows.length > 0) {
922927
output.push(new DocHeading({ configuration, title: 'Classes' }));
923928
output.push(classesTable);
@@ -927,10 +932,6 @@ export class MarkdownDocumenter {
927932
output.push(new DocHeading({ configuration, title: 'Enumerations' }));
928933
output.push(enumerationsTable);
929934
}
930-
if (functionsTable.rows.length > 0) {
931-
output.push(new DocHeading({ configuration, title: 'Functions' }));
932-
output.push(functionsTable);
933-
}
934935

935936
if (interfacesTable.rows.length > 0) {
936937
output.push(new DocHeading({ configuration, title: 'Interfaces' }));

0 commit comments

Comments
 (0)