chore(dgeni): work around TS 1.8 dgeni bug RE output paths

This commit is contained in:
perry
2016-03-11 16:45:02 -06:00
parent 6ec68e207c
commit 01a3034b96
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ module.exports = function(currentVersion){
docPath += doc.name + '/index.md'; docPath += doc.name + '/index.md';
var path = config.v2DocsDir + '/' + (versionData.current.folder || '') + var path = config.v2DocsDir + '/' + (versionData.current.folder || '') +
'/api/' + docPath; '/api/' + docPath;
path = path.replace('/home/ubuntu/ionic/ionic', '')
return path; return path;
} }
}]; }];

View File

@ -19,7 +19,7 @@ module.exports = function jekyll(renderDocsProcessor) {
docs.forEach(function(doc, i) { docs.forEach(function(doc, i) {
docs[i].URL = doc.outputPath.replace('docs/v2//','docs/v2/') docs[i].URL = doc.outputPath.replace('docs/v2//','docs/v2/')
.replace('/index.md','') .replace('/index.md','')
.replace('//home/ubuntu/ionic/ionic', '/'); .replace('//home/ubuntu/ionic/ionic', '');
}); });
docs.push({ docs.push({