Build types only for olx.* symbols from externs

This commit is contained in:
Andreas Hocevar
2014-08-08 13:37:36 +02:00
parent 9e814f119f
commit a35f361683

View File

@@ -50,7 +50,8 @@ exports.publish = function(data, opts) {
}
return include;
}).forEach(function(doc) {
if (doc.longname.indexOf('olx.') === 0) {
var isExterns = (/[\\\/]externs$/).test(doc.meta.path);
if (isExterns && doc.longname.indexOf('olx.') === 0) {
if (doc.kind == 'typedef') {
typedefs.push({
name: doc.longname,
@@ -115,7 +116,7 @@ exports.publish = function(data, opts) {
return true;
});
}
var target = (/[\\\/]externs$/).test(doc.meta.path) ? externs : symbols;
var target = isExterns ? externs : symbols;
target.push(symbol);
}
});