mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
chore(docs): update paths for doc menu refactor
This commit is contained in:
@ -11,20 +11,20 @@ module.exports = function jekyll(renderDocsProcessor){
|
|||||||
docType: 'api-menu',
|
docType: 'api-menu',
|
||||||
id: 'api-menu',
|
id: 'api-menu',
|
||||||
template: 'api_menu.template.html',
|
template: 'api_menu.template.html',
|
||||||
outputPath: '_includes/v2_api_menu.html'
|
outputPath: '_includes/v2/api_menu.html'
|
||||||
});
|
});
|
||||||
//TODO autogenerate this
|
//TODO autogenerate this
|
||||||
docs.push({
|
docs.push({
|
||||||
docType: 'api-menu-version',
|
docType: 'api-menu-version',
|
||||||
id: 'api-menu-version',
|
id: 'api-menu-version',
|
||||||
template: 'api_menu_version.template.html',
|
template: 'api_menu_version.template.html',
|
||||||
outputPath: '_includes/v2_api_menu_' + currentVersion + '.html'
|
outputPath: '_includes/v2/api_menu_' + currentVersion + '.html'
|
||||||
});
|
});
|
||||||
docs.push({
|
docs.push({
|
||||||
docType: 'api-version-select',
|
docType: 'api-version-select',
|
||||||
id: 'api-version-select',
|
id: 'api-version-select',
|
||||||
template: 'api_version_select.template.html',
|
template: 'api_version_select.template.html',
|
||||||
outputPath: '_includes/v2_api_version_select.html'
|
outputPath: '_includes/v2/api_version_select.html'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
<@ else @>
|
<@ else @>
|
||||||
{% elsif page.versionHref == "<$ ver.href $>" %}
|
{% elsif page.versionHref == "<$ ver.href $>" %}
|
||||||
<@ endif @>
|
<@ endif @>
|
||||||
{% include v2_api_menu_<$ ver.name $>.html %}
|
{% include v2/api_menu_<$ ver.name $>.html %}
|
||||||
<@ endif @>
|
<@ endif @>
|
||||||
<@ endfor @>
|
<@ endfor @>
|
||||||
<# make the last case always be to show latest version #>
|
<# make the last case always be to show latest version #>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include v2_api_menu_<$ version.latest.name $>.html %}
|
{% include v2/api_menu_<$ version.latest.name $>.html %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user