mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(dgeni): TS 1.8 patch cont.
This commit is contained in:
@ -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({
|
||||||
|
@ -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 @>
|
||||||
|
Reference in New Issue
Block a user