File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ comments, given a root file as a path.
72
72
generated documentation.
73
73
* ` args.shallow ` ** [ boolean] [ 20 ] ** whether to avoid dependency parsing
74
74
even in JavaScript code. (optional, default ` false ` )
75
- * ` args.order ` ** [ Array] [ 17 ] <([ string] [ 18 ] | [ Object] [ 19 ] )>** optional array that
75
+ * ` args.sortOrder ` ** [ Array] [ 17 ] <([ string] [ 18 ] | [ Object] [ 19 ] )>** optional array that
76
76
defines sorting order of documentation (optional, default ` [] ` )
77
77
* ` args.access ` ** [ Array] [ 17 ] <[ string] [ 18 ] >** an array of access levels
78
78
to output in documentation (optional, default ` [] ` )
@@ -94,7 +94,8 @@ var documentation = require('documentation');
94
94
95
95
documentation .build ([' index.js' ], {
96
96
// only output comments with an explicit @public tag
97
- access: [' public' ]
97
+ access: [' public' ],
98
+ sortOrder: [' kind' , ' alpha' ]
98
99
}).then (res => {
99
100
// res is an array of parsed comments with inferred properties
100
101
// and more: everything you need to build documentation or
You can’t perform that action at this time.
0 commit comments