Skip to content

Commit bae4d86

Browse files
committed
Correct buttons and labels for ReleaseHX
1 parent 62d8417 commit bae4d86

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

_docs/_data/theme/release-hx.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ tags:
108108
text: for changes that violate backward compatibility
109109
icon: unlink
110110
tone: warning
111+
-
112+
name: Deprication
113+
slug: deprecation
114+
text: announces future cancelation/removal of feature/capability
115+
icon: warning
116+
tone: warning
111117
roles:
112118
- name: Admin
113119
slug: admin
@@ -144,9 +150,10 @@ patterns: # value patterns for properties, organized by block
144150
download-url: "{{ site.source_www }}/releases/tag/v{{ rvsn.code }}"
145151
download-label:
146152
standard: "Get {{ rvsn.code }}"
147-
latest: "Get {{ rvsn.code }} icon:flag-checkered[] Latest!"
153+
latest: "Get v{{rvsn.code}} -- Latest release! icon:flag-checkered[]"
148154
go-to-latest: "Get {{ latest_release.code }} icon:flag-checkered[]"
149-
admonition:
155+
admonition: |-
156+
The following flag{% if flags.size > 1 %}s{% endif %} appear{% unless flags.size > 1 %}s{% endunless %} in this release.
150157
item: # changelog-item-specific settings
151158
note: # release-note-specific settings
152159
both: # release-note- and changelog-specific settings

_includes/release-hx-revision.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{%- assign download_btn_go-to-latest = config.patterns.revision.download-label.go-to-latest %}
1010
{%- if rvsn.code == latest_release.code %}
1111
{%- assign is_latest = true %}
12-
{%- assign download_btn_label = hx.patterns.revision.download-label.latest | default: "Latest version! v{{rvsn.code}} icon:flag-checkered[]" %}
12+
{%- assign download_btn_label = config.patterns.revision.download-label.latest | default: "Get v{{rvsn.code}} -- Latest! icon:flag-checkered[]" %}
1313
{%- assign download_btn_tone = "success" %}
1414
{%- endif %}
1515
{%- for tags_array in tags_map %}
@@ -57,7 +57,7 @@ Changes made in patch revisions to previous minor/major release{% if patch_vrsns
5757
{% if flags[0] %}
5858
[WARNING]
5959
====
60-
The following flags appear in changes made in this release.
60+
{{ config.patterns.revision.admonition | liquify }}
6161
{% for flag in flags %}
6262
{%- assign t = tags | where:"slug",flag | first %}
6363
[.rn-tag.btn.btn-sm.btn-{{ t.tone | default: 'primary' }}]#icon:{{ t.icon }}[{{ t.name | default: tag | capitalize }}] {{ t.name | default: tag | capitalize }}#

_includes/release-hx.asciidoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@
3434
// IF THERE ARE PATCHES AT THE TOP OF THE LISTING...
3535
{%- if patch_pol == "flatten" or loose_patches %}
3636
{%- assign parent_idx = forloop.index %}
37+
{%- assign latest_patch = nil %}
3738
{% for patch_rvsn in patches %}
3839
{%- if forloop.index == 1 and parent_idx == 1 %}
3940
{%- assign latest_patch = patch_rvsn %}
41+
{%- assign latest_release = latest_patch %}
4042
{%- endif %}
4143
{% include release-hx-revision.asciidoc revision=patch_rvsn %}
4244
{% endfor %}
43-
{%- if forloop.index == 1 %}
44-
{%- assign latest_release = latest_patch | default: revision %}
45-
{%- endif %}
4645
{% include release-hx-revision.asciidoc revision=revision %}
4746
{%- else %}
4847
{%- if forloop.index == 1 %}

0 commit comments

Comments
 (0)