Skip to content

Commit d350348

Browse files
authored
Merge pull request #2611 from dotty-staging/install-instructions
Fix #2602 : Add Install instructions to homepage
2 parents 36abd04 + 760b62e commit d350348

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

dist-bootstrapped/bin

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../dist/bin

docs/_includes/faq.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ <h1 id="is-there-scala-2-interop">Is there Scala 2 interop?</h1>
3434

3535
<h1 id="how-do-i-migrate-my-code-to-dotty">How do I migrate my code to Dotty?</h1>
3636
<p>
37-
An automated rewriting tool is planned for Dotty, more on this to come.
37+
The automated rewriting tool <a href="https://github.com/scalacenter/scalafix">scalafix</a>
38+
is planned for Dotty.
3839
Scala 2 sources can be compiled to some degree by issuing:
3940
</p>
40-
<pre class="sourceCode bright"><code>./bin/dotc -language:Scala2 file.scala</code></pre>
41+
<pre class="sourceCode bright"><code>dotc -language:Scala2 file.scala</code></pre>
4142
<p>when compiling your program.</p>
4243

4344
<h1 id="whos-working-on-it">Who’s working on it?</h1>

docs/_includes/features.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1 id="so-features">So, features?</h1>
2121
<td>Implemented</td>
2222
</tr>
2323
<tr class="even">
24-
<td><a href="https://github.com/scala/scala.github.com/pull/491">@@static methods and fields</a></td>
24+
<td><a href="https://github.com/scala/scala.github.com/pull/491">@static methods and fields</a></td>
2525
<td>Implemented</td>
2626
</tr>
2727
<tr class="odd">

docs/_includes/getting-started.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22
<div class="centered questions">
33

44
<h1 id="getting-started">Try Dotty</h1>
5-
<p>Try it in your browser with <a href="https://scastie.scala-lang.org/?target=dotty">Scastie</a>.</p>
5+
<p>If you are a Mac user, you can install Dotty with <a href="https://brew.sh/">brew</a>:</p>
6+
<pre class="sourceCode bright"><code>brew install lampepfl/brew/dotty</code></pre>
67

8+
<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>
9+
10+
<p>Now you can compile Scala source code:<p>
11+
<pre class="sourceCode bright"><code>dotc hello.scala</code></pre>
12+
13+
<p>To start the RPEL, run: <code>dotr</code>.<p>
14+
15+
<p>Or, you can try Dotty in your browser with <a href="https://scastie.scala-lang.org/?target=dotty">Scastie</a>.</p>
716

817
<h1 id="getting-started-with-a-project">Create a Dotty Project</h1>
918
<p>The fastest way to create a new project in Dotty is using <a href="http://www.scala-sbt.org/">sbt (0.13.15+)</a>.</p>

0 commit comments

Comments
 (0)