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({
|
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'
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue