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

Commit cece720

Browse files
Eric Jimeneznaomiblack
Eric Jimenez
authored andcommitted
output an audit file to keep track of documentation progress on API
1 parent 1e194b1 commit cece720

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
135135
pathTemplate: 'api-list.json',
136136
outputPathTemplate: '${path}'
137137
});
138+
139+
computePathsProcessor.pathTemplates.push({
140+
docTypes: ['api-list-data'],
141+
pathTemplate: 'api-list-audit.json',
142+
outputPathTemplate: '${path}'
143+
});
138144

139145
computePathsProcessor.pathTemplates.push({
140146
docTypes: ['cheatsheet-data'],
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[{% for module, items in doc.data %}
2+
{% for item in items %}
3+
{
4+
"title": "{$ item.title $}",
5+
"path": "{$ item.exportDoc.path $}",
6+
"docType": "{$ item.docType $}",
7+
"stability": "{$ item.stability $}",
8+
"secure": "{$ item.security $}",
9+
"howToUse": "{$ item.howToUse $}",
10+
"whatItDoes": {% if item.whatItDoes %}"Exists"{% else %}"Not Done"{% endif %},
11+
"barrel" : "{$ module | replace("/index", "") $}"
12+
}{% if not loop.last %},{% endif %}
13+
{% endfor %}
14+
{% endfor %}
15+
]

0 commit comments

Comments
 (0)