blob: cf34353bc0836f55e79a609c2f5ad6775c87ea52 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import sbt._
import sbt.Keys._
object Site {
val serveSite = taskKey[Unit]("Start a embedded web server with access to the site.")
val jekyllSource = settingKey[File]("Location of jekyll sources.")
val siteSettings = Seq(
jekyllSource := sourceDirectory.value / "main" / "jekyll",
serveSite := {
val command = "jekyll serve --watch --trace --detach" +
" --source " + jekyllSource.value.absolutePath +
" --destination " + (target.value / "_site").absolutePath
sbt.Process(command, jekyllSource.value, ("LC_ALL", "en_US.UTF-8")).run
}
)
}
|