From 4ea28333f896faa74a7724d5a89030758adedac3 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Mon, 17 Jun 2019 08:15:17 +0200 Subject: [PATCH] Avoid duplicates in api docs --- config/jsdoc/api/plugins/api.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; + } } }