Skip to content

Latest commit

 

History

History
69 lines (69 loc) · 3.67 KB

File metadata and controls

69 lines (69 loc) · 3.67 KB
layout tree-layout
regenerate true

{%- if site.useJSVersionV3 -%}

    {%- include liquid_searchVersionTreeFile.html ver="latest version" curPath="" targetRelativePath="sidelist-full-tree.html" -%}
{%- elsif site.useVersionTree -%}
{%- if site.edition -%} {%- if site.edition == 'algorithm' -%} {%- assign validVerInfo = site.data.product_version.version_info_list_algorithm -%} {%- elsif site.edition == 'js' -%} {%- assign validVerInfo = site.data.product_version.version_info_list_js -%} {%- elsif site.edition == 'mobile' -%} {%- assign validVerInfo = site.data.product_version.version_info_list_mobile -%} {%- else -%} {%- assign validVerInfo = site.data.product_version.version_info_list_desktop -%} {%- endif -%} {%- else -%} {%- assign validVerInfo = site.data.product_version.version_info_list -%} {%- endif -%} {%- if site.data.product_version.useGroupedVersion -%} {%- for verInfo in validVerInfo -%} {%- if verInfo.child -%} {%- for childVersion in verInfo.child -%} {%- assign c_version = childVersion | downcase | strip -%} {%- if c_version contains '_' -%} {%- assign arr = childVersion | split: "_" -%} {%- assign c_version = arr.first -%} {%- endif -%} {%- if c_version contains 'latest version' -%} {%- assign c_version = 'latest version' -%} {%- endif -%} {%- assign curId = "version_tree_" | append: c_version | replace: " ", "_" | downcase -%}
    {%- include liquid_searchVersionTreeFile.html ver=childVersion curPath="" targetRelativePath="sidelist-full-tree.html" -%}
{%- endfor -%} {%- else -%} {%- assign c_version = verInfo.value | downcase | strip -%} {%- if c_version contains 'latest version' -%} {%- assign c_version = 'latest version' -%} {%- endif -%} {%- assign curId = "version_tree_" | append: c_version | replace: " ", "_" | downcase -%}
    {%- include liquid_searchVersionTreeFile.html ver=verInfo.value curPath="" targetRelativePath="sidelist-full-tree.html" -%}
{%- endif -%} {%- endfor -%} {%- else -%} {%- for verInfo in validVerInfo -%} {%- assign c_version = verInfo | downcase | strip -%} {%- if c_version contains 'latest version' -%} {%- assign c_version = 'latest version' -%} {%- endif -%} {%- assign curId = "version_tree_" | append: c_version | replace: " ", "_" | downcase -%}
    {%- include liquid_searchVersionTreeFile.html ver=verInfo curPath="" targetRelativePath="sidelist-full-tree.html" -%}
{%- endfor -%} {%- endif -%}
{%- endif -%}