Skip to content

Commit 27c19c5

Browse files
authored
Merge pull request #4058 from ralfhandl/gh-pages-schema-list-improvements
gh-pages: schema list on landing page: call out "view" and "download" links
2 parents 08a99b0 + 97b7054 commit 27c19c5

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

index.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,18 @@ This site contains the OpenAPI Initiative Registry and content for the HTML vers
3131
{% assign last_kind = "" %}
3232
{%- for file in schema_files -%}
3333
{%- assign segments = file.path | split: "/" -%}
34-
{%- if segments[1] == "oas" and file.basename contains "-" -%}
34+
{%- if segments[1] == "oas" -%}
3535
{%- if segments[2] != last_version -%}
3636
{%- assign last_version = segments[2] %}
3737
* **v{{ last_version }}**
3838
{%- endif -%}
3939
{%- if segments[3] != last_kind -%}
4040
{%- assign last_kind = segments[3] %}
41-
* [**{{ last_kind }}**]({{ site.baseurl }}/oas/{{ last_version }}/{{ last_kind }}/latest.html)
41+
* [**view latest {{ last_kind }}**]({{ site.baseurl }}/oas/{{ last_version }}/{{ last_kind }}/latest.html)
42+
download iteration
4243
{%- assign separator = ": " -%}
4344
{%- endif -%}
44-
{{ separator }} [{{ file.basename }}]({{ site.baseurl }}{{ file.path }})
45+
{{ separator }} [{{ file.basename | replace: "-", "‑" }}]({{ site.baseurl }}{{ file.path }})
4546
{%- assign separator = ", " -%}
4647
{%- endif -%}
4748
{%- endfor %}

oas/3.1/dialect/latest.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: JSON Schema dialect for OpenAPI
3+
layout: default
4+
parent: Schemas
5+
---
6+
7+
```json
8+
{% include_relative base %}
9+
```

oas/3.1/meta/latest.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: JSON Schema Vocabulary used in OpenAPI
3+
layout: default
4+
parent: Schemas
5+
---
6+
7+
```json
8+
{% include_relative base %}
9+
```

0 commit comments

Comments
 (0)