Skip to content

Commit

Permalink
Merge pull request #10653 from ahocevar/apidoc-nav
Browse files Browse the repository at this point in the history
More reliable check for module content beyond classes
  • Loading branch information
ahocevar committed Feb 13, 2020
2 parents 3223880 + 4e1ca0a commit 8750cb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/jsdoc/api/template/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ function buildNav(members) {
kind: 'event',
memberof: v.longname
});
// only add modules that have more to show than just classes
const numItems = classes.length - 1 + members.length + methods.length + typedefs.length + events.length;
if (!classes.length || (numItems > 0 && numItems !== classes.length)) {
// Only add modules that contain more than just classes with their
// associated Options typedef
if (typedefs.length > classes.length || members.length + methods.length > 0) {
nav.push({
type: 'module',
longname: v.longname,
Expand Down

0 comments on commit 8750cb0

Please sign in to comment.