diff --git a/config/jsdoc/api/plugins/api.js b/config/jsdoc/api/plugins/api.js index 248e7c0d52..fae15e465b 100644 --- a/config/jsdoc/api/plugins/api.js +++ b/config/jsdoc/api/plugins/api.js @@ -59,7 +59,9 @@ function includeAugments(doclet) { }); } cls._hideConstructor = true; - delete cls.undocumented; + if (!cls.undocumented) { + cls._documented = true; + } } } } @@ -150,6 +152,9 @@ exports.handlers = { // Remove all other undocumented symbols doclet.undocumented = true; } + if (doclet._documented) { + delete doclet.undocumented; + } } } diff --git a/config/jsdoc/api/template/publish.js b/config/jsdoc/api/template/publish.js index cec1de96bd..b7e37e11cd 100644 --- a/config/jsdoc/api/template/publish.js +++ b/config/jsdoc/api/template/publish.js @@ -222,6 +222,10 @@ function buildNav(members) { type: 'module', longname: v.longname, name: v.name, + classes: find({ + kind: 'class', + memberof: v.longname + }), members: find({ kind: 'member', memberof: v.longname @@ -240,30 +244,6 @@ function buildNav(members) { }) }); } - if (v.kind == 'class') { - nav.push({ - type: 'class', - longname: v.longname, - name: v.name, - members: find({ - kind: 'member', - memberof: v.longname - }), - methods: find({ - kind: 'function', - memberof: v.longname - }), - typedefs: find({ - kind: 'typedef', - memberof: v.longname - }), - fires: v.fires, - events: find({ - kind: 'event', - memberof: v.longname - }) - }); - } } }); return nav; diff --git a/config/jsdoc/api/template/tmpl/navigation.tmpl b/config/jsdoc/api/template/tmpl/navigation.tmpl index cfa91d196a..08c1df4a91 100644 --- a/config/jsdoc/api/template/tmpl/navigation.tmpl +++ b/config/jsdoc/api/template/tmpl/navigation.tmpl @@ -22,6 +22,20 @@ function toShortName(name) { +