-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from sbt/sbt-1.0-paradox
Support paradox for sbt 1.0
- Loading branch information
Showing
12 changed files
with
83 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=0.13.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=0.13.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name := "test" | ||
|
||
enablePlugins(ParadoxSitePlugin, TutPlugin) | ||
sourceDirectory in Paradox := tutTargetDirectory.value | ||
makeSite := makeSite.dependsOn(tut).value | ||
|
||
TaskKey[Unit]("checkContent") := { | ||
val dest = (target in makeSite).value | ||
|
||
def checkFileContent(file: File, expected: String) = { | ||
assert(file.exists, s"${file.getAbsolutePath} did not exist") | ||
val actual = IO.readLines(file) | ||
assert(actual.exists(_.contains(expected)), s"Did not find $expected in:\n${actual.mkString("\n")}") | ||
} | ||
|
||
checkFileContent(dest / "index.html", "Here is how you add numbers") | ||
checkFileContent(dest / "test.html", "scala.util.Try") | ||
} |
1 change: 1 addition & 0 deletions
1
src/sbt-test/site/plays-nice-with-tut-sbt-0.13/project/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=0.13.16 |
2 changes: 2 additions & 0 deletions
2
src/sbt-test/site/plays-nice-with-tut-sbt-0.13/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % sys.props("project.version")) | ||
addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.5.2") |
15 changes: 15 additions & 0 deletions
15
src/sbt-test/site/plays-nice-with-tut-sbt-0.13/src/main/tut/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Tutorial | ||
|
||
<!-- #tut --> | ||
Here is how you add numbers: | ||
|
||
```tut | ||
1 + 1 | ||
``` | ||
<!-- #tut --> | ||
|
||
@@@ index | ||
|
||
- [test](test.md) | ||
|
||
@@@ |
5 changes: 5 additions & 0 deletions
5
src/sbt-test/site/plays-nice-with-tut-sbt-0.13/src/main/tut/test.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Test | ||
|
||
```tut:silent | ||
import scala.util.Try | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
> makeSite | ||
> checkContent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.0.0-RC2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % sys.props("project.version")) | ||
addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.5.2") | ||
addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.6.1") |