File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -231,23 +231,22 @@ function getParams(entry) {
231
231
// instead convert it to a string. We want a slightly different conversion to
232
232
// string, so we match these params to the Documentation.js-provided `params`
233
233
// array and grab the description from those.
234
- return ( entry . tags || [ ] ) . filter ( t => t . title === 'param' ) . map ( node => {
235
- const param = entry . params . find ( param => param . name === node . name ) ;
236
- if ( param ) {
234
+ return ( entry . tags || [ ] )
235
+
236
+ // Filter out the nested parameters (eg. options.extrude),
237
+ // to be treated as part of parent parameters (eg. options)
238
+ // and not separate entries
239
+ . filter ( t => t . title === 'param' && ! t . name . includes ( '.' ) )
240
+ . map ( node => {
241
+ const param = ( entry . params || [ ] ) . find ( param => param . name === node . name ) ;
237
242
return {
238
243
...node ,
239
- description : param . description
240
- } ;
241
- } else {
242
- return {
243
- ...node ,
244
- description : {
244
+ description : param ?. description || {
245
245
type : 'html' ,
246
246
value : node . description
247
247
}
248
248
} ;
249
- }
250
- } ) ;
249
+ } ) ;
251
250
}
252
251
253
252
// ============================================================================
You can’t perform that action at this time.
0 commit comments