Add additional tags to the angular.io dgeni package for the new api doc style proposal.
Closes #1030
This commit is contained in:
parent
a0a2ee6a93
commit
fa4b597614
@ -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'
|
||||
];
|
||||
})
|
||||
|
||||
});
|
||||
|
@ -0,0 +1,5 @@
|
||||
module.exports = function() {
|
||||
return {
|
||||
name: 'deprecated'
|
||||
};
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
module.exports = function() {
|
||||
return {
|
||||
name: 'howToUse'
|
||||
};
|
||||
};
|
6
tools/api-builder/angular.io-package/tag-defs/index.js
Normal file
6
tools/api-builder/angular.io-package/tag-defs/index.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = [
|
||||
require('./deprecated'),
|
||||
require('./howToUse'),
|
||||
require('./whatItIs'),
|
||||
require('./internal')
|
||||
];
|
@ -0,0 +1,8 @@
|
||||
module.exports = function() {
|
||||
return {
|
||||
name: 'internal',
|
||||
transforms: function() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
module.exports = function() {
|
||||
return {
|
||||
name: 'whatItIs'
|
||||
};
|
||||
};
|
@ -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' -%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user