7
7
{%- else -%}
8
8
{%- assign version = page.url | split: "/" | slice: -1 | first -%}
9
9
{%- endif -%}
10
+ {%- assign underscored_version = version | replace: '.', '_' -%}
10
11
< div class ="row align-items-start justify-content-center my-5 ">
11
12
< div class ="col-lg-3 mb-5 " role ="complementary " aria-labelledby ="page-title ">
12
13
< div class ="card shadow px-2 mx-2 ">
@@ -35,17 +36,15 @@ <h1 id="page-title" class="fs-3">{{ version }} Documentation</h1>
35
36
</ div >
36
37
< div class ="col-lg-6 " role ="main ">
37
38
< div class ="row row-cols-1 row-cols-md-2 g-4 ">
38
- {%- for docSet in site.data.documentation | sort: "rank" -%}
39
- {%- assign docSetVersion = docSet[0] | replace: '_', '.' -%}
40
- {%- if docSetVersion == version -%}
41
- {%- for doc in docSet[1].docs -%}
39
+ {%- assign docs_for_release = site.data.documentation[underscored_version].docs | sort: "rank" -%}
40
+ {%- for doc in docs_for_release -%}
42
41
{%- assign first1 = doc.path | slice: 0, 1 -%}
43
42
{%- assign first7 = doc.path | slice: 0, 7 -%}
44
43
{%- assign first8 = doc.path | slice: 0, 8 -%}
45
44
{%- if first7 == 'http://' or first8 == 'https://' or first1 == '/' -%}
46
45
{%- assign pathPrefix = "" -%}
47
46
{%- else -%}
48
- {%- assign pathPrefix = "/documentation/" | append: {{ version}} | append: "/" -%}
47
+ {%- assign pathPrefix = "/documentation/" | append: version | append: "/" -%}
49
48
{%- endif -%}
50
49
< div class ="col ">
51
50
< div class ="card shadow mb-2 h-100 mx-2 {%- for tag in doc.tags %} doctag-{{tag}}{%- endfor -%} ">
@@ -57,8 +56,6 @@ <h2 class="card-title fs-4"><a href='{{ pathPrefix }}{{ doc.path | replace: "$(V
57
56
</ div >
58
57
</ div >
59
58
</ div >
60
- {%- endfor -%}
61
- {%- endif -%}
62
59
{%- endfor -%}
63
60
</ div >
64
61
</ div >
0 commit comments