From ff17cf836cf9813872aaacb12ef9188bd4c1ebfe Mon Sep 17 00:00:00 2001 From: perry Date: Fri, 1 Apr 2016 12:30:52 -0500 Subject: [PATCH] chore(dgeni): some docs don't have a relativePath --- scripts/docs/processors/jekyll.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index 0c381e304b..a429c38701 100644 --- a/scripts/docs/processors/jekyll.js +++ b/scripts/docs/processors/jekyll.js @@ -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({