chore(doc-gen): convert private classes to interfaces in the docs

Closes #3576
This commit is contained in:
Peter Bacon Darwin 2015-09-04 19:01:26 +01:00
parent 4bffd97edd
commit 34b91c62c5
2 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,7 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
.factory(require('./readers/ngdoc')) .factory(require('./readers/ngdoc'))
// Register the processors // Register the processors
.processor(require('./processors/convertPrivateClassesToInterfaces'))
.processor(require('./processors/generateNavigationDoc')) .processor(require('./processors/generateNavigationDoc'))
.processor(require('./processors/extractTitleFromGuides')) .processor(require('./processors/extractTitleFromGuides'))
.processor(require('./processors/createOverviewDump')) .processor(require('./processors/createOverviewDump'))

View File

@ -0,0 +1,10 @@
module.exports = function convertPrivateClassesToInterfacesProcessor(convertPrivateClassesToInterfaces) {
return {
$runAfter: ['processing-docs'],
$runBefore: ['docs-processed'],
$process: function(docs) {
convertPrivateClassesToInterfaces(docs, false);
return docs;
}
};
};