File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,20 @@ This site contains the OpenAPI Initiative Registry and content for the HTML vers
28
28
29
29
{% assign schema_files = site.static_files | where: "extname", "" | sort: "path" | reverse %}
30
30
{% assign last_version = "" %}
31
+ {% assign last_kind = "" %}
31
32
{%- for file in schema_files -%}
32
33
{%- assign segments = file.path | split: "/" -%}
33
- {%- if segments[ 1] == "oas" and file.basename contains "latest " -%}
34
+ {%- if segments[ 1] == "oas" and file.basename contains "- " -%}
34
35
{%- if segments[ 2] != last_version -%}
35
36
{%- assign last_version = segments[ 2] %}
36
37
* ** v{{ last_version }}**
38
+ {%- endif -%}
39
+ {%- if segments[ 3] != last_kind -%}
40
+ {%- assign last_kind = segments[ 3] %}
41
+ * [ ** {{ last_kind }}** ] ({{ site.baseurl }}/oas/{{ last_version }}/{{ last_kind }}/latest.html)
37
42
{%- assign separator = ": " -%}
38
43
{%- endif -%}
39
- {{ separator }}[ {{ segments [ 3 ] }} ] ( {{ site.baseurl }}{{ file.path }}.html) ( [ download ] ({{ site.baseurl }}{{ file.path }}) )
44
+ {{ separator }} [ {{ file.basename }}] ({{ site.baseurl }}{{ file.path }})
40
45
{%- assign separator = ", " -%}
41
46
{%- endif -%}
42
47
{%- endfor %}
You can’t perform that action at this time.
0 commit comments