Skip to content

Commit

Permalink
docs: render supported enterprise versions from json
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarcia360 committed Nov 19, 2024
1 parent 7ba487a commit 848d4bd
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 28 deletions.
34 changes: 34 additions & 0 deletions docs/_static/data/enterprise_supported_versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"data": [
{
"version": "2024.2",
"released": "November 2024",
"status": "Supported",
"end_of_life": "After 2026.1 or 2025.2 is released (see :ref:`Version Support Policy <version-support-policy>`)"
},
{
"version": "2024.1 (LTS)",
"released": "February 2024",
"status": "Supported",
"end_of_life": "After 2026.1 is released (see :ref:`Version Support Policy <version-support-policy>`)"
},
{
"version": "2023.1 (LTS)",
"released": "August 2023",
"status": "Supported",
"end_of_life": "After 2025.1 is released (see :ref:`Version Support Policy <version-support-policy>`)"
},
{
"version": "2022.2",
"released": "January 2023",
"status": "Not supported",
"end_of_life": "June 2024"
},
{
"version": "2022.1 (LTS)",
"released": "August 2022",
"status": "Not supported",
"end_of_life": "June 2024"
}
]
}
15 changes: 15 additions & 0 deletions docs/_templates/supported_versions.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.. list-table::
:widths: 15 20 15 50
:header-rows: 1

* - Version
- Released
- Status
- End of Life (EOL)

{% for row in data['data'] %}
* - {{ row['version'] }}
- {{ row['released'] }}
- {{ row['status'] }}
- {{ row['end_of_life'] }}
{% endfor %}
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"sphinx_sitemap",
"sphinx_scylladb_theme",
"sphinx_multiversion", # optional
"sphinxcontrib.datatemplates",

]

# The suffix(es) of source filenames.
Expand Down Expand Up @@ -94,6 +96,9 @@
# The theme to use for pages.
html_theme = "sphinx_scylladb_theme"

# The directory for data templates.
templates_path = ['_templates', ]

# These folders are copied to the documentation's HTML output
html_static_path = ['_static']

Expand Down
1 change: 1 addition & 0 deletions docs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ sphinx-autobuild = "^2024.4.19"
Sphinx = "^7.3.7"
sphinx-multiversion-scylla = "^0.3.1"
redirects_cli ="^0.1.3"
sphinxcontrib-datatemplates = "^0.11.0"

[build-system]
requires = ["poetry>=1.8.0"]
Expand Down
30 changes: 2 additions & 28 deletions docs/versioning/version-support-enterprise.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,8 @@ ScyllaDB Enterprise Version Support
Supported Versions
------------------------

.. list-table::
:widths: 20 25 20 35
:header-rows: 1

* - Version
- Released
- Status
- End of Life (EOL)
* - 2024.2
- November 2024
- Supported
- After 2026.1 or 2025.2 is released (see :ref:`Version Support Policy <version-support-policy>`)
* - 2024.1 (LTS)
- February 2024
- Supported
- After 2026.1 is released (see :ref:`Version Support Policy <version-support-policy>`)
* - 2023.1 (LTS)
- August 2023
- Supported
- After 2025.1 is released (see :ref:`Version Support Policy <version-support-policy>`)
* - 2022.2
- January 2023
- Not supported
- June 2024
* - 2022.1 (LTS)
- August 2022
- Not supported
- June 2024
.. datatemplate:json:: /_static/data/enterprise_supported_versions.json
:template: supported_versions.tmpl

Version Numbering
-------------------
Expand Down

0 comments on commit 848d4bd

Please sign in to comment.