Skip to content

Latest commit

 

History

History
62 lines (62 loc) · 3.34 KB

Hide_Tree_Page.md

File metadata and controls

62 lines (62 loc) · 3.34 KB
layout regenerate
tree-layout
true

{%- if 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 -%}