refact(docs-app): move filtered API list into a directive

Each API index page now displays data from an `api-list.json` file found
locally to that page. This lets us have different API lists for TS, JS
and Dart.
This commit is contained in:
Peter Bacon Darwin
2015-12-10 19:27:54 +00:00
committed by Naomi Black
parent b298b9c1af
commit 05a272a116
9 changed files with 78 additions and 68 deletions
@@ -99,9 +99,9 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
});
computePathsProcessor.pathTemplates.push({
docTypes: ['json-data'],
pathTemplate: path.resolve(PUBLIC_PATH, 'resources/js/${id}'),
outputPathTemplate: '${path}.json'
docTypes: ['api-list-data'],
pathTemplate: 'api-list.json',
outputPathTemplate: '${path}'
});
computePathsProcessor.pathTemplates.push({
@@ -28,9 +28,9 @@ module.exports = function addJadeDataDocsProcessor() {
var modules = [];
var appDataDoc = {
id: 'app-data',
aliases: ['app-data'],
docType: 'json-data',
id: 'api-list-data',
aliases: ['api-list-data'],
docType: 'api-list-data',
data: {}
};
extraDocs.push(appDataDoc);