diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/json.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/doc/json.js b/tools/doc/json.js index e4c5d76c461..4138fbad308 100644 --- a/tools/doc/json.js +++ b/tools/doc/json.js @@ -368,6 +368,9 @@ function finishSection(section, parent) { if (!section.type) { section.type = 'module'; + if (parent && (parent.type === 'misc')) { + section.type = 'misc'; + } section.displayName = section.name; section.name = section.name.toLowerCase() .trim().replace(/\s+/g, '_'); @@ -439,6 +442,9 @@ function finishSection(section, parent) { case 'miscs': return; default: + if (parent.type === 'misc') { + return; + } if (Array.isArray(k) && parent[k]) { parent[k] = parent[k].concat(section[k]); } else if (!parent[k]) { |