Skip to content

Commit

Permalink
make a custom structure for version.json (#858)
Browse files Browse the repository at this point in the history
This will merge the "flavor" release with the rest of the releases in a simpler array
  • Loading branch information
coppolaemilio authored May 31, 2024
1 parent ff8a04e commit d58271f
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
---
---

{{ site.data.versions | jsonify | replace: "/article/", "https://godotengine.org/article/" }}
[
{% for v in site.data.versions %}
{
"name": "{{ v.name }}",
"releases": [
{
"name": "{{ v.flavor }}",
"release_date": "{{ v.release_date }}",
"release_notes": "{{ v.release_notes | replace: "/article/", "https://godotengine.org/article/" }}"
},
{% for r in v.releases %}
{
"name": "{{ r.name }}",
"release_date": "{{ r.release_date }}",
"release_notes": "{{ r.release_notes | replace: "/article/", "https://godotengine.org/article/" }}"
},
{% endfor %}
]
},
{% endfor %}
]

0 comments on commit d58271f

Please sign in to comment.