build(aio): add checkContentRules processor (#22759)

This processor will enable us to write rules about
how the content should appear, such as:

* no headings in markdown content
* only one sentence per line
* no single character parameter names
* etc.

PR Close #22759
This commit is contained in:
Pete Bacon Darwin
2018-03-13 22:24:47 +00:00
committed by Igor Minar
parent af46d097ff
commit e0ae74d40e
3 changed files with 178 additions and 0 deletions

View File

@ -30,6 +30,7 @@ module.exports = new Package('angular-base', [
.processor(require('./processors/fixInternalDocumentLinks'))
.processor(require('./processors/copyContentAssets'))
.processor(require('./processors/renderLinkInfo'))
.processor(require('./processors/checkContentRules'))
// overrides base packageInfo and returns the one for the 'angular/angular' repo.
.factory('packageInfo', function() { return require(path.resolve(PROJECT_ROOT, 'package.json')); })