Skip to content

Commit

Permalink
Tools: Improve handling of mixed option doclets.
Browse files Browse the repository at this point in the history
  • Loading branch information
bre1470 authored and TorsteinHonsi committed Oct 2, 2018
1 parent c0b742d commit c663b84
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tools/jsdoc/plugins/highcharts.namespace.js
Expand Up @@ -60,13 +60,20 @@ function isApiOption (doclet) {
let name = getName(doclet),
comment = (doclet.comment || ''),
isApiOption = (
comment.indexOf('@apioption') >= 0 ||
comment.indexOf('@optionparent') >= 0 ||
comment.indexOf('@ignore-option') >= 0 ||
(!doclet.undocumented &&
doclet.kind === 'member' &&
(doclet.children ||
doclet.scope === 'global'))
name.indexOf('Highcharts') !== 0 &&
(
comment.indexOf('@apioption') >= 0 ||
comment.indexOf('@optionparent') >= 0 ||
comment.indexOf('@ignore-option') >= 0 ||
(
!doclet.undocumented &&
doclet.kind === 'member' &&
(
doclet.children ||
doclet.scope === 'global'
)
)
)
);

if (isApiOption) {
Expand Down

0 comments on commit c663b84

Please sign in to comment.