chore(dgeni): TS 1.8 patch cont.

This commit is contained in:
perry
2016-03-11 18:22:57 -06:00
parent 4a1dce3be6
commit 91f36f2217
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@ 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', '')
.replace('//', '/');
}); });
docs.push({ docs.push({

View File

@ -1,4 +1,4 @@
<@ for doc in docs @><@ if doc.URL and doc.private != true and doc.name @> <@ for doc in docs @><@ if doc.URL and doc.private != true and doc.name @>
<li class="capitalize {% if page.id == '<$ doc.name|lower|replace(' ','-')$>' %}active{% endif %}"> <li class="capitalize {% if page.id == '<$ doc.name|lower|replace(' ','-')$>' %}active{% endif %}">
<a href="/<$ doc.URL|replace('\/\/ ','/') $>"><$ doc.name $></a> <a href="/<$ doc.URL $>"><$ doc.name $></a>
</li><@ endif @><@ endfor @> </li><@ endif @><@ endfor @>