Skip to content

Commit

Permalink
Use the purple version admonition for maintenance phases
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlinville committed Jul 2, 2024
1 parent 7be9506 commit 25795c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 33 deletions.
2 changes: 2 additions & 0 deletions src/current/_data/alerts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ tip: '<div class="alert alert-success" role="alert"><i class="fas fa-check-squar
note: '<div class="alert alert-info" role="alert"><i class="fas fa-info-circle"></i> <b>Note: </b>'
important: '<div class="alert alert-warning" role="alert"><i class="fas fa-warning"></i> <b>Important: </b>'
warning: '<div class="alert alert-danger" role="alert"><i class="fas fa-exclamation-circle"></i> <b>Warning: </b>'
version: '<div class="alert alert-version" role="alert"><i class="fas fa-info-circle"></i>'
end: '</div>'

callout_danger: '<div class="bs-callout bs-callout--danger"><div class="bs-callout__label">Warning:</div>'
callout_success: '<div class="bs-callout bs-callout--success"><div class="bs-callout__label">Tip:</div>'
callout_info: '<div class="bs-callout bs-callout--info"><div class="bs-callout__label">Note:</div>'
callout_version: '<div class="bs-callout bs-callout--version">'

hr_faded: '<hr class="faded"/>'
hr_shaded: '<hr class="shaded"/>'
3 changes: 3 additions & 0 deletions src/current/_includes/corestyle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,9 @@ section table tr.warning, table tr.testing, table tr.testing > td.sorting_1 {
section table tr.danger, table tr.preference, table tr.preference > td.sorting_1 {
background-color: #f2dede !important;
}
section table tr.version {
background-color: rgba(105, 51, 255, 0.2);
}

.orange {
color: orange;
Expand Down
35 changes: 2 additions & 33 deletions src/current/_includes/unsupported-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,37 +31,6 @@ Today date: {{ today | date: "%Y-%m-%d" }} <br />

{% assign x = site.data.versions | where_exp: "m", "m.major_version == include.major_version" | first %}

{% comment %}Save the admonitions into variables {% endcomment %}
{% capture lts_eol_message %}
{{site.data.alerts.callout_danger}}
CockroachDB {{ include.major_version }} (LTS) is no longer supported as of {{ x.lts_asst_supp_exp_date | date: "%B %e, %Y"}}. For more details, refer to the <a href="https://www.cockroachlabs.com/docs/releases/release-support-policy.html">Release Support Policy</a>.
{{site.data.alerts.end}}
{% endcapture %}

{% capture lts_assistance_message %}
{{site.data.alerts.callout_danger}}
GA releases for CockroachDB {{ include.major_version }} are no longer supported. Cockroach Labs will stop providing <strong>LTS Assistance Support</strong> for {{ include.major_version }} LTS releases on <strong>{{ x.lts_asst_supp_exp_date | date: "%B %e, %Y" }}</strong>. Prior to that date, upgrade to a more recent version to continue receiving support. For more details, refer to the <a href="https://www.cockroachlabs.com/docs/releases/release-support-policy.html">Release Support Policy</a>.
{{site.data.alerts.end}}
{% endcapture %}

{% capture lts_maintenance_message %}
{{site.data.alerts.callout_info}}
GA releases for CockroachDB {{ include.major_version }} are no longer supported. Cockroach Labs will stop providing <strong>LTS Assistance Support</strong> for {{ include.major_version }} LTS releases on <strong>{{ x.lts_asst_supp_exp_date | date: "%B %e, %Y" }}</strong>. Prior to that date, upgrade to a more recent version to continue receiving support. For more details, refer to the <a href="https://www.cockroachlabs.com/docs/releases/release-support-policy.html">Release Support Policy</a>.
{{site.data.alerts.end}}
{% endcapture %}

{% capture ga_eol_message %}
{{site.data.alerts.callout_danger}}
CockroachDB {{ include.major_version }} is no longer supported as of {{ x.asst_supp_exp_date | date: "%B %e, %Y"}}. For more details, refer to the <a href="https://www.cockroachlabs.com/docs/releases/release-support-policy.html">Release Support Policy</a>.
{{site.data.alerts.end}}
{% endcapture %}

{% capture ga_assistance_message %}
{{site.data.alerts.callout_danger}}
Cockroach Labs will stop providing <strong>Assistance Support</strong> for {{ include.major_version }} on <strong>{{ x.asst_supp_exp_date | date: "%B %e, %Y" }}</strong>. Prior to that date, upgrade to a more recent version to continue receiving support. For more details, refer to the <a href="https://www.cockroachlabs.com/docs/releases/release-support-policy.html">Release Support Policy</a>.
{{site.data.alerts.end}}
{% endcapture %}

{% comment %}Continue only if we found an entry for this major version {% endcomment %}
{% if x %}

Expand Down Expand Up @@ -112,7 +81,7 @@ Today date: {{ today | date: "%Y-%m-%d" }} <br />

{% capture lts_maintenance_message %}
{% if today >= lm %}
{{site.data.alerts.callout_danger}}
{{site.data.alerts.callout_version}}
As of {{ x.lts_maint_supp_exp_date | date: "%B %e, %Y" }}, LTS releases of CockroachDB {{ x.major_version }} releases are in <strong>Maintenance Support</strong>{% if today > a %} and GA releases of CockroachDB {{ include.major_version }} are no longer supported.{% endif %}. Cockroach Labs will stop providing <strong>Assistance Support</strong> for {{ include.major_version }} LTS on <strong>{{ x.lts_asst_supp_exp_date | date: "%B %e, %Y" }}</strong>. Prior to that date, upgrade to a more recent version to continue receiving support. For more details, refer to the <a href="https://www.cockroachlabs.com/docs/releases/release-support-policy.html">Release Support Policy</a>
{{site.data.alerts.end}}
{% endif %}
Expand All @@ -136,7 +105,7 @@ Today date: {{ today | date: "%Y-%m-%d" }} <br />

{% capture ga_maintenance_message %}
{% if today <= m and today > a %}
{{site.data.alerts.callout_danger}}
{{site.data.alerts.callout_version}}
As of <strong>{{ x.maint_supp_exp_date | date: "%B %e, %Y" }}</strong>, {{ include.major_version }} releases are in <strong>Maintenance Support</strong>. Cockroach Labs will stop providing <strong>Assistance Support</strong> for {{ include.major_version }} on <strong>{{ x.asst_supp_exp_date | date: "%B %e, %Y" }}</strong>. Prior to that date, upgrade to a more recent version to continue receiving support. For more details, refer to the <a href="https://www.cockroachlabs.com/docs/releases/release-support-policy.html">Release Support Policy</a>.
{{site.data.alerts.end}}
{% endif %}
Expand Down

0 comments on commit 25795c6

Please sign in to comment.