From d89d6b1ff6c24869d921cb4319bba9187558553c Mon Sep 17 00:00:00 2001 From: Brian Folts Date: Sun, 25 Sep 2016 13:41:41 -0600 Subject: [PATCH] fix(build_docs): fix doc building --- package.json | 1 + tools/custom-esdoc-plugin.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d83a8a1066..34f2440488 100644 --- a/package.json +++ b/package.json @@ -153,6 +153,7 @@ "coveralls": "^2.11.13", "cz-conventional-changelog": "^1.2.0", "doctoc": "^1.0.0", + "escape-string-regexp": "^1.0.5 ", "esdoc": "^0.4.7", "eslint": "^2.12.0", "fs-extra": "^0.30.0", diff --git a/tools/custom-esdoc-plugin.js b/tools/custom-esdoc-plugin.js index 36fac63f32..3f4ce0c098 100644 --- a/tools/custom-esdoc-plugin.js +++ b/tools/custom-esdoc-plugin.js @@ -1,3 +1,4 @@ + function getTagValue(tag, tagName) { var unknownTags = tag.unknown; if (!unknownTags) { @@ -47,9 +48,9 @@ exports.onHandleTag = function onHandleTag(ev) { delete tag.importStyle; } if (isHidden) { - ev.data.tag[i] = {name: '', longname: ''}; - ev.data.tag[i]['export'] = false; - } else if (owner) { + ev.data.tag[i].builtinExternal = true; + } + if (owner && owner === 'Observable') { var ownerLongname = getLongname(ev, owner); tag.kind = 'method'; tag.static = false; @@ -61,4 +62,5 @@ exports.onHandleTag = function onHandleTag(ev) { delete tag.importStyle; } } + return ev; };