diff --git a/scala3doc/scala3-docs/css/frontpage.css b/scala3doc/scala3-docs/css/frontpage.css index 6f4a7eca1ee3..722d4ba09802 100644 --- a/scala3doc/scala3-docs/css/frontpage.css +++ b/scala3doc/scala3-docs/css/frontpage.css @@ -60,6 +60,12 @@ section.page { min-height: 100vh; width: 100%; padding: 0; + padding-bottom: 2em; +} + +section.page strong { + font-weight: bold; + color: rgba(255,255,255,0.6); } section .container { diff --git a/scala3doc/scala3-docs/index.html b/scala3doc/scala3-docs/index.html index 46022b3068d6..a4042cb2e1f1 100644 --- a/scala3doc/scala3-docs/index.html +++ b/scala3doc/scala3-docs/index.html @@ -1,5 +1,5 @@ --- -title: Dotty +title: Scala 3 layout: main hasFrame: false extraCSS: @@ -26,6 +26,11 @@
A next-generation compiler for Scala
(scroll down for more info)
If you are a Mac user, you can install Dotty with brew:
+There are multiple ways of getting started with Scala 3.
+cs setup
. You can also run cs install scala3-compiler
or cs install scala3-repl
to install command-line commands for the compiler and repl, correspondingly.If you are a Mac user, you can install Scala 3 with brew:
brew install lampepfl/brew/dotty
- If you are a Linux or Windows user, download the latest release. Optionally add path of the folder bin/
to the system environment variable PATH
.
+ If you are a Linux or Windows user, as a prerequisite you need a JDK 8 or later properly installed on your system. The environment variable JAVA_HOME
should point to your Java installation.
+ For Windows users, we recommend using the Windows subsystem for linux or some other bash shell like git bash.
+ Then download the latest release. Optionally add the path of the folder bin/
to the system environment variable PATH
.
+
Now you can compile Scala source code:
scalac hello.scala
To start the REPL, run: scala
.
Or, you can try Dotty in your browser with Scastie.
- -The fastest way to create a new project in Dotty is using sbt (1.1.4+).
+The fastest way to create a new project in Scala 3 is using sbt (1.1.4+).
-Create a Dotty project:
+Create a Scala 3 project:
sbt new lampepfl/dotty.g8
- Or a Dotty project that cross compiles with Scala 2:
+Or a Scala 3 project that cross compiles with Scala 2:
sbt new lampepfl/dotty-cross.g8
- For documentation see the Dotty Example Project.
+For documentation see the Scala 3 Example Project.
+ +You can find much more information about Scala 3 in ...
+