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

Add additional meta tags to the angular.io dgeni package #1030

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions tools/api-builder/angular.io-package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -139,5 +139,4 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
'IMPLEMENTS',
'ABSTRACT'
];
})

});
5 changes: 5 additions & 0 deletions tools/api-builder/angular.io-package/tag-defs/deprecated.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = function() {
return {
name: 'deprecated'
};
};
5 changes: 5 additions & 0 deletions tools/api-builder/angular.io-package/tag-defs/howToUse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = function() {
return {
name: 'howToUse'
};
};
6 changes: 6 additions & 0 deletions tools/api-builder/angular.io-package/tag-defs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = [
require('./deprecated'),
require('./howToUse'),
require('./whatItIs'),
require('./internal')
];
8 changes: 8 additions & 0 deletions tools/api-builder/angular.io-package/tag-defs/internal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = function() {
return {
name: 'internal',
transforms: function() {
return true;
}
}
};
5 changes: 5 additions & 0 deletions tools/api-builder/angular.io-package/tag-defs/whatItIs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = function() {
return {
name: 'whatItIs'
};
};
Original file line number Diff line number Diff line change
@@ -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' -%}
Expand Down