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',
|
||||
id: 'api-menu',
|
||||
template: 'api_menu.template.html',
|
||||
outputPath: '_includes/v2_api_menu.html'
|
||||
outputPath: '_includes/v2/api_menu.html'
|
||||
});
|
||||
//TODO autogenerate this
|
||||
docs.push({
|
||||
docType: 'api-menu-version',
|
||||
id: 'api-menu-version',
|
||||
template: 'api_menu_version.template.html',
|
||||
outputPath: '_includes/v2_api_menu_' + currentVersion + '.html'
|
||||
outputPath: '_includes/v2/api_menu_' + currentVersion + '.html'
|
||||
});
|
||||
docs.push({
|
||||
docType: 'api-version-select',
|
||||
id: 'api-version-select',
|
||||
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 @>
|
||||
{% elsif page.versionHref == "<$ ver.href $>" %}
|
||||
<@ endif @>
|
||||
{% include v2_api_menu_<$ ver.name $>.html %}
|
||||
{% include v2/api_menu_<$ ver.name $>.html %}
|
||||
<@ endif @>
|
||||
<@ endfor @>
|
||||
<# make the last case always be to show latest version #>
|
||||
{% else %}
|
||||
{% include v2_api_menu_<$ version.latest.name $>.html %}
|
||||
{% include v2/api_menu_<$ version.latest.name $>.html %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user