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:
parent
eedca09d73
commit
8850098ea4
|
@ -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']),
|
||||||
|
|
Loading…
Reference in New Issue