Skip to content

Commit a40c45f

Browse files
committed
Update installation instructions
1 parent ba63bcc commit a40c45f

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

scala3doc/scala3-docs/css/frontpage.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ section.page {
6060
min-height: 100vh;
6161
width: 100%;
6262
padding: 0;
63+
padding-bottom: 2em;
64+
}
65+
66+
section.page strong {
67+
font-weight: bold;
68+
color: rgba(255,255,255,0.6);
6369
}
6470

6571
section .container {

scala3doc/scala3-docs/index.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Dotty
2+
title: Scala 3
33
layout: main
44
hasFrame: false
55
extraCSS:
@@ -58,18 +58,29 @@ <h1 id="dotty" class="above-byline">Scala 3</h1>
5858
<div class="container">
5959

6060
<h1 id="getting-started">Try Scala 3</h1>
61-
<p>If you are a Mac user, you can install Scala 3 with <a href="https://brew.sh/">brew</a>:</p>
61+
<p>There are multiple ways of <a href="https://docs.scala-lang.org/scala3/getting-started.html">getting started</a> with Scala 3.</p>
62+
<ol>
63+
<li>You can try Scala 3 in your browser with <a href="https://scastie.scala-lang.org/?target=dotty">Scastie</a>.</li>
64+
<li>If you already have sbt installed, you can <a href="#getting-started-with-a-project">create a Scala 3 project</a> and sbt will take care of the rest.</li>
65+
<li>You can install all necessary dependencies with <a href="https://get-coursier.io/">coursier</a> by running <code>cs setup</code>. You can also run <code>cs install scala3-compiler</code> or <code>cs install scala3-repl</code> to install command-line commands for the compiler and repl, correspondingly.</li>
66+
<li>You can <a href="#install">manually install Scala 3</a> on your computer.</li>
67+
</ol>
68+
69+
<h1 id="install">Install Scala 3</h1>
70+
<p>If you are a <strong>Mac</strong> user, you can install Scala 3 with <a href="https://brew.sh/">brew</a>:</p>
6271
<pre><code>brew install lampepfl/brew/dotty</code></pre>
6372

64-
<p>If you are a Linux or Windows user, download the <a href="https://github.com/lampepfl/dotty/releases">latest release</a>. Optionally add path of the folder <code>bin/</code> to the system environment variable <code>PATH</code>. </p>
73+
<p>
74+
If you are a <strong>Linux</strong> or <strong>Windows</strong> user, as a prerequisite you need a JDK 8 or later properly installed on your system. The environment variable <code>JAVA_HOME</code> should point to your Java installation.<br/>
75+
For <strong>Windows</strong> users, we recommend using <a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10">the Windows subsystem for linux</a> or some other bash shell like <a href="https://gitforwindows.org/">git bash</a>.<br/>
76+
Then download the <a href="https://github.com/lampepfl/dotty/releases">latest release</a>. Optionally add the path of the folder <code>bin/</code> to the system environment variable <code>PATH</code>.
77+
</p>
6578

6679
<p>Now you can compile Scala source code:</p>
6780
<pre><code>scalac hello.scala</code></pre>
6881

6982
<p>To start the REPL, run: <code>scala</code>.</p>
7083

71-
<p>Or, you can try Scala 3 in your browser with <a href="https://scastie.scala-lang.org/?target=dotty">Scastie</a>.</p>
72-
7384
<h1 id="getting-started-with-a-project">Create a Scala 3 Project</h1>
7485
<p>The fastest way to create a new project in Scala 3 is using <a href="http://www.scala-sbt.org/">sbt (1.1.4+)</a>.</p>
7586

0 commit comments

Comments
 (0)