api-builder: filter out member docs
Since we are not rendering these independently of their containers
This commit is contained in:
parent
954a3827b7
commit
244e5673ab
|
@ -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'))
|
||||
|
|
|
@ -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'; });
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue