chore(doc-gen): move `@publicModule` tag-def to base package

This prevents unwanted "unknown tag" warnings when generating the non-public docs.
This commit is contained in:
Peter Bacon Darwin 2015-03-24 10:57:35 +00:00
parent 539e8e2cce
commit 7e89af8190
2 changed files with 4 additions and 4 deletions

View File

@ -89,6 +89,10 @@ module.exports = new Package('angular', [jsdocPackage, nunjucksPackage])
]; ];
}) })
// Add in a custom tag that we use when generating public docs
.config(function(parseTagsProcessor) {
parseTagsProcessor.tagDefinitions.push({ name: 'publicModule' });
})
// Configure ids and paths // Configure ids and paths
.config(function(computeIdsProcessor, computePathsProcessor, EXPORT_DOC_TYPES) { .config(function(computeIdsProcessor, computePathsProcessor, EXPORT_DOC_TYPES) {

View File

@ -6,10 +6,6 @@ module.exports = new Package('angular-public', [basePackage])
.processor(require('./processors/filterPublicDocs')) .processor(require('./processors/filterPublicDocs'))
.config(function(parseTagsProcessor) {
parseTagsProcessor.tagDefinitions.push({ name: 'publicModule' });
})
.config(function(processClassDocs, filterPublicDocs, EXPORT_DOC_TYPES) { .config(function(processClassDocs, filterPublicDocs, EXPORT_DOC_TYPES) {
processClassDocs.ignorePrivateMembers = true; processClassDocs.ignorePrivateMembers = true;
filterPublicDocs.docTypes = EXPORT_DOC_TYPES; filterPublicDocs.docTypes = EXPORT_DOC_TYPES;