chore(dgeni): dgeni TS 1.8 patch cont.

This commit is contained in:
perry
2016-03-11 17:18:24 -06:00
parent 5d766d3045
commit 5fb37cc665
2 changed files with 2 additions and 3 deletions

View File

@ -19,8 +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', '');
.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(' ','-')|replace('// ','/') $>' %}active{% endif %}">
<a href="/<$ doc.URL $>"><$ doc.name $></a> <a href="/<$ doc.URL $>"><$ doc.name $></a>
</li><@ endif @><@ endfor @> </li><@ endif @><@ endfor @>