diff options
Diffstat (limited to 'docs/contributing')
-rw-r--r-- | docs/contributing/eclipse.md | 5 | ||||
-rw-r--r-- | docs/contributing/getting-started.md | 6 | ||||
-rw-r--r-- | docs/contributing/intellij-idea.md (renamed from docs/contributing/inellij-idea.md) | 4 | ||||
-rw-r--r-- | docs/contributing/workflow.md | 20 |
4 files changed, 28 insertions, 7 deletions
diff --git a/docs/contributing/eclipse.md b/docs/contributing/eclipse.md index 4ab4b3fcd..46301dc42 100644 --- a/docs/contributing/eclipse.md +++ b/docs/contributing/eclipse.md @@ -1,3 +1,8 @@ +--- +layout: default +title: Eclipse +--- + Building Dotty with Eclipse =========================== diff --git a/docs/contributing/getting-started.md b/docs/contributing/getting-started.md index c01f380ae..92afd02f3 100644 --- a/docs/contributing/getting-started.md +++ b/docs/contributing/getting-started.md @@ -1,3 +1,8 @@ +--- +layout: default +title: "Getting Started" +--- + Getting Started =============== @@ -29,6 +34,7 @@ git clone -b dotty-library https://github.com/DarkDimius/scala.git scala-scala # Run it with the proper classpath ./bin/dotr HelloWorld ``` + Starting a REPL --------------- ```bash diff --git a/docs/contributing/inellij-idea.md b/docs/contributing/intellij-idea.md index 7e79e8327..dda04f515 100644 --- a/docs/contributing/inellij-idea.md +++ b/docs/contributing/intellij-idea.md @@ -1,3 +1,7 @@ +--- +layout: default +--- + Building Dotty with Intellij IDEA ================================= Dotty compiler support is available in the [Scala plugin nightly] starting diff --git a/docs/contributing/workflow.md b/docs/contributing/workflow.md index 83def1a6d..e160999d9 100644 --- a/docs/contributing/workflow.md +++ b/docs/contributing/workflow.md @@ -1,3 +1,8 @@ +--- +layout: default +title: "Workflow" +--- + Workflow ======== This document details common workflow patterns when working with Dotty. @@ -5,13 +10,14 @@ This document details common workflow patterns when working with Dotty. ## Compiling files with dotc ## From sbt: -``` -run <OPTIONS> <FILE> + +```bash +> run <OPTIONS> <FILE> ``` From terminal: -``` +```bash $ ./bin/dotc <OPTIONS> <FILE> ``` @@ -33,7 +39,7 @@ Additional logging information can be obtained by changes some `noPrinter` to ## Running tests ## -``` +```bash $ sbt > partest --show-diff --verbose ``` @@ -41,7 +47,7 @@ $ sbt ## Running single tests ## To test a specific test tests/x/y.scala (for example tests/pos/t210.scala): -``` +```bash > partest-only-no-bootstrap --show-diff --verbose tests/partest-generated/x/y.scala ``` @@ -53,14 +59,14 @@ way partest has been set up. There is no power mode for the REPL yet, but you can inspect types with the type stealer: -``` +```bash $ ./bin/dotr scala> import test.DottyTypeStealer._; import dotty.tools.dotc.core._; import Contexts._,Types._ ``` Now, you can define types and access their representation. For example: -``` +```scala scala> val s = stealType("class O { type X }", "O#X") scala> implicit val ctx: Context = s._1 scala> val t = s._2(0) |