chore(docs): updating dgeni typescript package

This commit is contained in:
perry
2017-03-14 14:50:31 -05:00
parent 4354fc212e
commit 396f891f33
160 changed files with 760 additions and 2014 deletions

View File

@ -2,17 +2,18 @@ module.exports = function removePrivateApi() {
return {
name: 'remove-private-api',
description: 'Prevent the private apis from being rendered',
$runAfter: ['paths-computed'],
$runBefore: ['rendering-docs'],
$process: function(docs) {
var publicDocs = [];
docs.forEach(function(doc){
if(!doc.private){
docs.forEach(function(doc){
if (!doc.private && (!doc.tags || !doc.tags.tagsByName.get('hidden'))){
publicDocs.push(doc);
return doc
}
})
docs = publicDocs;
return docs;
docs = publicDocs;
return docs;
}
}
};