From 34b91c62c5edd252645d52c60f194327354c2e8a Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 4 Sep 2015 19:01:26 +0100 Subject: [PATCH] chore(doc-gen): convert private classes to interfaces in the docs Closes #3576 --- docs/docs-package/index.js | 1 + .../processors/convertPrivateClassesToInterfaces.js | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 docs/docs-package/processors/convertPrivateClassesToInterfaces.js diff --git a/docs/docs-package/index.js b/docs/docs-package/index.js index 312841d329..67b78fb474 100644 --- a/docs/docs-package/index.js +++ b/docs/docs-package/index.js @@ -15,6 +15,7 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage, .factory(require('./readers/ngdoc')) // Register the processors +.processor(require('./processors/convertPrivateClassesToInterfaces')) .processor(require('./processors/generateNavigationDoc')) .processor(require('./processors/extractTitleFromGuides')) .processor(require('./processors/createOverviewDump')) diff --git a/docs/docs-package/processors/convertPrivateClassesToInterfaces.js b/docs/docs-package/processors/convertPrivateClassesToInterfaces.js new file mode 100644 index 0000000000..6e6e758daa --- /dev/null +++ b/docs/docs-package/processors/convertPrivateClassesToInterfaces.js @@ -0,0 +1,10 @@ +module.exports = function convertPrivateClassesToInterfacesProcessor(convertPrivateClassesToInterfaces) { + return { + $runAfter: ['processing-docs'], + $runBefore: ['docs-processed'], + $process: function(docs) { + convertPrivateClassesToInterfaces(docs, false); + return docs; + } + }; +}; \ No newline at end of file