-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4241 from ralfhandl/gh-pages-overlay-schema-list
gh-pages: show schema iteration list for Overlay
- Loading branch information
Showing
2 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% assign schema_files = site.static_files | where: "extname", "" | sort: "path" | reverse %} | ||
{% assign last_version = "" %} | ||
{% assign last_kind = "" %} | ||
{%- for file in schema_files -%} | ||
{%- assign segments = file.path | split: "/" -%} | ||
{%- if segments[1] == include.specification -%} | ||
{%- if segments[2] != last_version -%} | ||
{%- assign last_version = segments[2] %} | ||
* **v{{ last_version }}** | ||
{%- endif -%} | ||
{%- if segments[3] != last_kind -%} | ||
{%- if segments[4] == "base" -%} | ||
{%- continue -%} | ||
{%- endif -%} | ||
{%- assign last_kind = segments[3] %} | ||
* view [**{{ last_kind }}/{{ segments[4] }}**]({{ site.baseurl }}/{{ include.specification }}/{{ last_version }}/{{ last_kind }}/{{ segments[4] }}.html) | ||
download iteration | ||
{%- assign separator = ": " -%} | ||
{%- endif -%} | ||
{{ separator }} [{{ file.basename | replace: "-", "‑" }}]({{ site.baseurl }}{{ file.path }}) | ||
{%- assign separator = ", " -%} | ||
{%- endif -%} | ||
{%- endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters