build(aio): ensure API docs are generated in the correct place (#15103)

The move of the source code from modules/@angular to packages, caused a
problem with the path to the API docs.
This commit is contained in:
Pete Bacon Darwin 2017-03-13 23:53:47 +00:00 committed by Chuck Jazdzewski
parent eedca09d73
commit 8850098ea4
1 changed files with 2 additions and 3 deletions

View File

@ -217,11 +217,10 @@ module.exports =
{ {
docTypes: ['module'], docTypes: ['module'],
getPath: function computeModulePath(doc) { getPath: function computeModulePath(doc) {
doc.moduleFolder = doc.moduleFolder = `${API_SEGMENT}/${doc.id.replace(/\/index$/, '')}`;
doc.id.replace(/^@angular\//, API_SEGMENT + '/').replace(/\/index$/, '');
return doc.moduleFolder; return doc.moduleFolder;
}, },
outputPathTemplate: '${moduleFolder}/index.json' outputPathTemplate: '${moduleFolder}.json'
}, },
{ {
docTypes: EXPORT_DOC_TYPES.concat(['decorator', 'directive', 'pipe']), docTypes: EXPORT_DOC_TYPES.concat(['decorator', 'directive', 'pipe']),