build(aio): do not render ignored docs

This commit is contained in:
Peter Bacon Darwin
2017-03-19 10:37:53 +00:00
committed by Miško Hevery
parent 8c12374c4c
commit 1a0c6d89b1
3 changed files with 59 additions and 1 deletions

View File

@ -48,6 +48,7 @@ module.exports =
.processor(require('./processors/convertToJson'))
.processor(require('./processors/markBarredODocsAsPrivate'))
.processor(require('./processors/filterPrivateDocs'))
.processor(require('./processors/filterIgnoredDocs'))
// overrides base packageInfo and returns the one for the 'angular/angular' repo.
.factory('packageInfo', function() { return require(path.resolve(PROJECT_ROOT, 'package.json')); })
@ -123,7 +124,12 @@ module.exports =
generateKeywordsProcessor.docTypesToIgnore = ['example-region'];
})
// Ignore certain problematic files
.config(function(filterIgnoredDocs) {
filterIgnoredDocs.ignore = [
/\/VERSION$/ // Ignore the `VERSION` const, since it would be written to the same file as the `Version` class
];
})
// Where do we write the output files?
.config(function(writeFilesProcessor) { writeFilesProcessor.outputFolder = OUTPUT_PATH; })