api-builder: refactor app-data doc to use generic pathTemplates
This commit is contained in:
parent
8199aeffdc
commit
d08ebf4b9a
|
@ -79,8 +79,8 @@ module.exports = new Package('angular.io', [basePackage])
|
|||
});
|
||||
|
||||
computePathsProcessor.pathTemplates.push({
|
||||
docTypes: ['app-data'],
|
||||
pathTemplate: path.resolve(PUBLIC_PATH, 'resources/js/app-data'),
|
||||
docTypes: ['json-data'],
|
||||
pathTemplate: path.resolve(PUBLIC_PATH, 'resources/js/${id}'),
|
||||
outputPathTemplate: '${path}.json'
|
||||
});
|
||||
})
|
||||
|
|
|
@ -29,7 +29,8 @@ module.exports = function addJadeDataDocsProcessor() {
|
|||
|
||||
var appDataDoc = {
|
||||
id: 'app-data',
|
||||
docType: 'app-data',
|
||||
aliases: ['app-data'],
|
||||
docType: 'json-data',
|
||||
data: {}
|
||||
};
|
||||
extraDocs.push(appDataDoc);
|
||||
|
|
Loading…
Reference in New Issue