chore(dgeni): some docs don't have a relativePath

This commit is contained in:
perry
2016-04-01 12:30:52 -05:00
parent b832b4c502
commit ff17cf836c

View File

@ -21,8 +21,10 @@ module.exports = function jekyll(renderDocsProcessor) {
.replace('/index.md','')
.replace('//home/ubuntu/ionic/ionic', '')
.replace('//', '/');
docs[i].relativePath = doc.relativePath
.replace('//home/ubuntu/ionic', '');
if (docs[i].relativePath) {
docs[i].relativePath = doc.relativePath
.replace('//home/ubuntu/ionic', '');
}
});
docs.push({