Add additional tags to the angular.io dgeni package for the new api doc style proposal.

Closes #1030
This commit is contained in:
Eric Jimenez 2016-03-31 14:17:17 -04:00 committed by Peter Bacon Darwin
parent a0a2ee6a93
commit fa4b597614
7 changed files with 35 additions and 4 deletions

View File

@ -34,8 +34,8 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
};
})
.config(function(parseTagsProcessor) {
parseTagsProcessor.tagDefinitions.push({ name: 'internal', transforms: function() { return true; } });
.config(function(parseTagsProcessor, getInjectables) {
parseTagsProcessor.tagDefinitions = parseTagsProcessor.tagDefinitions.concat(getInjectables(require('./tag-defs')));
})
.config(function(readTypeScriptModules, writeFilesProcessor, readFilesProcessor) {
@ -139,5 +139,4 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
'IMPLEMENTS',
'ABSTRACT'
];
})
});

View File

@ -0,0 +1,5 @@
module.exports = function() {
return {
name: 'deprecated'
};
};

View File

@ -0,0 +1,5 @@
module.exports = function() {
return {
name: 'howToUse'
};
};

View File

@ -0,0 +1,6 @@
module.exports = [
require('./deprecated'),
require('./howToUse'),
require('./whatItIs'),
require('./internal')
];

View File

@ -0,0 +1,8 @@
module.exports = function() {
return {
name: 'internal',
transforms: function() {
return true;
}
}
};

View File

@ -0,0 +1,5 @@
module.exports = function() {
return {
name: 'whatItIs'
};
};

View File

@ -1,3 +1,6 @@
<!-- TODO: API design proposal section will use doc.howToUse and doc.whatItIs -->
<!-- TODO: API design proposal badges will use doc.deprecated -->
{% include "lib/githubLinks.html" -%}
{% include "lib/paramList.html" -%}
{% extends 'layout/base.template.html' -%}