Skip to content

Commit b5dc873

Browse files
committed
feat: better status messages for the upcoming version pages
Show the release date, when there is one, and add the concept of a “release candidate” stage (where the spec is subject to small changes based on implementor experience) vs a “working draft” stage (where we make no guarantees about what might still change, aside from our existing backwards compatibility promises).
1 parent e4aff91 commit b5dc873

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

_format/upcoming/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
is_upcoming_version: true
3+
status: rc
4+
release_date: 2019-01-31
35
---
46
{% for spec_draft in site.format %}
57
{% if spec_draft.version > site.latest_version and spec_draft.path contains 'index' %}

_includes/status.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,43 @@
66
{% assign version = include.version %}
77
{% assign is_latest_version_page = include.is_latest_version %}
88
{% assign is_upcoming_version_page = include.is_upcoming_version %}
9+
{% assign status = include.status %}
910

1011
## <a href="#status" id="status" class="headerlink"></a> Status
1112

1213
{% comment %}
13-
The first paragraph in each case, below, aims to explain what content
14-
the page holds and how that may (or may not) change over time.
14+
The first paragraph in each case below aims to explain what content
15+
the page holds and whether that content is finalized.
1516

1617
Note: all the text below must be outdented and markdownified where it's
1718
included for it to be rendered correctly as markdown.
1819
{% endcomment %}
1920

2021
{% if is_latest_version_page %}
21-
This page represents the latest published version of JSON:API, which is
22+
This page presents the latest published version of JSON:API, which is
2223
currently version {{ site.latest_version }}. New versions of JSON:API **will
2324
always be backwards compatible** using a _never remove, only add_ strategy.
2425
Additions can be proposed in our [discussion forum](http://discuss.jsonapi.org/).
2526

2627
{% elsif is_upcoming_version_page %}
27-
This page represents the **working draft** for the next version of JSON:API,
28-
which is currently expected to be {{ site.latest_version|plus:0.1 }}.
28+
This page presents the **{% if status == "rc" %}release candidate{% else %}
29+
working draft{% endif %}** for the next version of JSON:API, which is
30+
expected to be {{ site.latest_version|plus:0.1 }}. {% if status != "rc" %}
31+
As a draft, the content on this page is subject to change.{% else %}As a
32+
release candidate, the content on this page is unlikely to change. However,
33+
some changes may still occur if implementation experience proves that they are
34+
necessary before this version is finalized.{% endif %}
35+
36+
{% if include.release_date %}
37+
This version is expected to be finalized and released on
38+
**{{ include.release_date | date: "%B %e, %Y" }}** (provided there are two compliant implementations by that date; if not the release will wait until such implementations exist to prove its viability).
39+
{% endif %}
40+
2941

3042
{% elsif version and version > site.latest_version %}
3143
This page will always present the most recent text for JSON:API
32-
v{{ site.latest_version|plus:0.1 }}. Currently, version
33-
{{ site.latest_version|plus:0.1 }} is **still a draft**, so this text is
34-
provisional.
44+
v{{ site.latest_version|plus:0.1 }}. Version {{ site.latest_version|plus:0.1 }}
45+
has not been finalized, so the text here may change.
3546

3647
{% elsif version and version == site.latest_version %}
3748
This page presents an archived copy of JSON:API version {{ version }}. None

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h1>
8787
<section>
8888
{% if page.is_spec_page %}
8989
{% capture status %}
90-
{% include status.md version=page.version is_latest_version=page.is_latest_version is_upcoming_version=page.is_upcoming_version %}
90+
{% include status.md release_date=page.release_date status=page.status version=page.version is_latest_version=page.is_latest_version is_upcoming_version=page.is_upcoming_version %}
9191
{% endcapture %}
9292
{{ status|strip|markdownify }}
9393
{% endif %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy