Skip to content

Commit 6d9a70c

Browse files
committed
Update build-docs script to order props alphabetically
1 parent 581c3ad commit 6d9a70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ components.forEach(component => {
7171

7272
/* Props */
7373
content += `## API\n`;
74-
component.props?.forEach(prop => {
74+
_.sortBy(component.props, p => p.name)?.forEach(prop => {
7575
content += `### ${prop.name}\n`;
7676
content += `${prop.description} \n`;
7777
// content += `<span style={{color: 'grey'}}>${_.escape(prop.type)}</span>\n\n`;

0 commit comments

Comments
 (0)