mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
generate api index page
This commit is contained in:
14
scripts/docs/templates/api_menu.template.html
vendored
Normal file
14
scripts/docs/templates/api_menu.template.html
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<@ for ver in version.list @>
|
||||
<@ if ver.name != version.latest.name @>
|
||||
<@ if loop.first @>
|
||||
{% if page.versionHref == "<$ ver.href $>" %}
|
||||
<@ else @>
|
||||
{% elsif page.versionHref == "<$ ver.href $>" %}
|
||||
<@ endif @>
|
||||
{% include api_menu_<$ ver.name $>.html %}
|
||||
<@ endif @>
|
||||
<@ endfor @>
|
||||
<# make the last case always be to show latest version #>
|
||||
{% else %}
|
||||
{% include api_menu_<$ version.latest.name $>.html %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user