api-builder: refactor app-data doc to use generic pathTemplates

This commit is contained in:
Peter Bacon Darwin 2015-11-04 16:21:11 +00:00
parent 8199aeffdc
commit d08ebf4b9a
2 changed files with 4 additions and 3 deletions

View File

@ -79,8 +79,8 @@ module.exports = new Package('angular.io', [basePackage])
}); });
computePathsProcessor.pathTemplates.push({ computePathsProcessor.pathTemplates.push({
docTypes: ['app-data'], docTypes: ['json-data'],
pathTemplate: path.resolve(PUBLIC_PATH, 'resources/js/app-data'), pathTemplate: path.resolve(PUBLIC_PATH, 'resources/js/${id}'),
outputPathTemplate: '${path}.json' outputPathTemplate: '${path}.json'
}); });
}) })

View File

@ -29,7 +29,8 @@ module.exports = function addJadeDataDocsProcessor() {
var appDataDoc = { var appDataDoc = {
id: 'app-data', id: 'app-data',
docType: 'app-data', aliases: ['app-data'],
docType: 'json-data',
data: {} data: {}
}; };
extraDocs.push(appDataDoc); extraDocs.push(appDataDoc);