Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit fa4b597

Browse files
Eric Jimenezpetebacondarwin
Eric Jimenez
authored andcommitted
Add additional tags to the angular.io dgeni package for the new api doc style proposal.
Closes #1030
1 parent a0a2ee6 commit fa4b597

File tree

7 files changed

+35
-4
lines changed

7 files changed

+35
-4
lines changed

tools/api-builder/angular.io-package/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
3434
};
3535
})
3636

37-
.config(function(parseTagsProcessor) {
38-
parseTagsProcessor.tagDefinitions.push({ name: 'internal', transforms: function() { return true; } });
37+
.config(function(parseTagsProcessor, getInjectables) {
38+
parseTagsProcessor.tagDefinitions = parseTagsProcessor.tagDefinitions.concat(getInjectables(require('./tag-defs')));
3939
})
4040

4141
.config(function(readTypeScriptModules, writeFilesProcessor, readFilesProcessor) {
@@ -139,5 +139,4 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
139139
'IMPLEMENTS',
140140
'ABSTRACT'
141141
];
142-
})
143-
142+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = function() {
2+
return {
3+
name: 'deprecated'
4+
};
5+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = function() {
2+
return {
3+
name: 'howToUse'
4+
};
5+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = [
2+
require('./deprecated'),
3+
require('./howToUse'),
4+
require('./whatItIs'),
5+
require('./internal')
6+
];
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = function() {
2+
return {
3+
name: 'internal',
4+
transforms: function() {
5+
return true;
6+
}
7+
}
8+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = function() {
2+
return {
3+
name: 'whatItIs'
4+
};
5+
};

tools/api-builder/angular.io-package/templates/class.template.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- TODO: API design proposal section will use doc.howToUse and doc.whatItIs -->
2+
<!-- TODO: API design proposal badges will use doc.deprecated -->
3+
14
{% include "lib/githubLinks.html" -%}
25
{% include "lib/paramList.html" -%}
36
{% extends 'layout/base.template.html' -%}

0 commit comments

Comments
 (0)