From 4d290a6be4b5abaa6c2c0141bbb4f7d9ff44092b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pawlik?= Date: Wed, 16 Apr 2025 21:35:52 +0200 Subject: [PATCH 1/2] Explain version choice on download page --- _layouts/download.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/_layouts/download.html b/_layouts/download.html index 6616e3f6a..a11038dda 100644 --- a/_layouts/download.html +++ b/_layouts/download.html @@ -75,7 +75,17 @@

Install Scala with cs setup (recomme -

Other ways to install Scala

+ +
+

Which version of Scala should I choose?

+

There are 2 distribution lines of Scala 3:

+ +
+ +

Other ways to install Scala

From ea2d658d04607f4c0fe78960f345908cddc080b3 Mon Sep 17 00:00:00 2001 From: Michal Pawlik Date: Thu, 17 Apr 2025 17:56:52 +0200 Subject: [PATCH 2/2] render scala version on download page, improve layout --- _layouts/download.html | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/_layouts/download.html b/_layouts/download.html index a11038dda..1a4f99f95 100644 --- a/_layouts/download.html +++ b/_layouts/download.html @@ -76,15 +76,32 @@

Install Scala with cs setup (recomme

-
+
+ + {% for release in site.data.scala-releases %} + {% assign version_slice = release.version | slice: 0, 2 %} + {% if release.category == 'current_version' %} + {% if version_slice == '3.' %} + {% unless release.title contains "LTS" %} + {% assign scala_next_release = release %} + {% endunless %} + {% if release.title contains "LTS" %} + {% assign scala_lts_release = release %} + {% endif %} + {% endif %} + {% endif %} + {% endfor %} + +

Which version of Scala should I choose?

There are 2 distribution lines of Scala 3:

-
    -
  • Scala Next - The default to be used by most users, containing the latest features, bug fixes and improvements.
  • -
  • Scala LTS - Advised to be used for publishing libraries. (Some especially conservative users might also choose it over Scala Next.)
  • +
      +
    • Scala Next currently {{ scala_next_release.version }} - The default to be used by most users, containing the latest features, bug fixes and improvements.
    • +
    • Scala LTS currently {{ scala_lts_release.version }} - Advised to be used for publishing libraries.
+

Other ways to install Scala