api-builder: filter out member docs

Since we are not rendering these independently of their containers
This commit is contained in:
Peter Bacon Darwin 2015-11-13 14:09:28 +00:00
parent 954a3827b7
commit 244e5673ab
2 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,7 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
.processor(require('./processors/filterUnwantedDecorators'))
.processor(require('./processors/extractDirectiveClasses'))
.processor(require('./processors/matchUpDirectiveDecorators'))
.processor(require('./processors/filterMemberDocs'))
// overrides base packageInfo and returns the one for the 'angular/angular' repo.
.factory(require('./services/packageInfo'))

View File

@ -0,0 +1,9 @@
module.exports = function filterMemberDocs() {
return {
$runAfter: ['extra-docs-added'],
$runBefore: ['rendering-docs'],
$process: function(docs) {
return docs.filter(function(doc) { return doc.docType !== 'member'; });
}
}
};