Skip to content

Explain version choice on download page #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion _layouts/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,34 @@ <h2>Install Scala with <span style="font-weight: bold;">cs setup</span> (recomme
</a>
</div>
</div>
<h2>Other ways to install Scala</h2>

<div id="version-choice">

{% 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 %}


<h2>Which version of Scala should I choose?</h2>
<p>There are 2 distribution lines of Scala 3:</p>
<ul style="list-style-type: disc; padding: 10px;">
<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>
<li><strong>Scala LTS</strong> currently {{ scala_lts_release.version }} - Advised to be used for publishing <strong>libraries</strong>.</li>
</ul>
</div>


<h2>Other ways to install Scala</h2>
<div class="wrap">
<a href="{{ site.baseurl }}/download/all.html" class="btn-download dl-find-all">
<i class="fa fa-list-ul"></i>
Expand Down