Skip to content

Commit a69f334

Browse files
authored
Explain version choice on download page (#1791)
* Explain version choice on download page * render scala version on download page, improve layout
1 parent 05abe5d commit a69f334

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

_layouts/download.html

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,34 @@ <h2>Install Scala with <span style="font-weight: bold;">cs setup</span> (recomme
7575
</a>
7676
</div>
7777
</div>
78-
<h2>Other ways to install Scala</h2>
78+
79+
<div id="version-choice">
80+
81+
{% for release in site.data.scala-releases %}
82+
{% assign version_slice = release.version | slice: 0, 2 %}
83+
{% if release.category == 'current_version' %}
84+
{% if version_slice == '3.' %}
85+
{% unless release.title contains "LTS" %}
86+
{% assign scala_next_release = release %}
87+
{% endunless %}
88+
{% if release.title contains "LTS" %}
89+
{% assign scala_lts_release = release %}
90+
{% endif %}
91+
{% endif %}
92+
{% endif %}
93+
{% endfor %}
94+
95+
96+
<h2>Which version of Scala should I choose?</h2>
97+
<p>There are 2 distribution lines of Scala 3:</p>
98+
<ul style="list-style-type: disc; padding: 10px;">
99+
<li><strong>Scala Next</strong> currently {{ scala_next_release.version }} - The <strong>default</strong> to be used by most users, containing the latest features, bug fixes and improvements.</li>
100+
<li><strong>Scala LTS</strong> currently {{ scala_lts_release.version }} - Advised to be used for publishing <strong>libraries</strong>.</li>
101+
</ul>
102+
</div>
103+
104+
105+
<h2>Other ways to install Scala</h2>
79106
<div class="wrap">
80107
<a href="{{ site.baseurl }}/download/all.html" class="btn-download dl-find-all">
81108
<i class="fa fa-list-ul"></i>

0 commit comments

Comments
 (0)