/
build.sbt
47 lines (35 loc) · 1.64 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import com.typesafe.sbt.SbtGit.git
enablePlugins(SiteScaladocPlugin, ParadoxSitePlugin, TutPlugin, GhpagesPlugin, ScalaUnidocPlugin)
name := "rasterframes-docs"
libraryDependencies ++= Seq(
spark("mllib").value % Tut,
spark("sql").value % Tut
)
git.remoteRepo := "git@github.com:locationtech/rasterframes.git"
apiURL := Some(url("http://rasterframes.io/latest/api"))
autoAPIMappings := true
ghpagesNoJekyll := true
ScalaUnidoc / siteSubdirName := "latest/api"
addMappingsToSiteDir(ScalaUnidoc / packageDoc / mappings, ScalaUnidoc / siteSubdirName)
Paradox / paradoxProperties ++= Map(
"github.base_url" -> "https://github.com/locationtech/rasterframes"
//"scaladoc.org.apache.spark.sql.gt" -> "http://rasterframes.io/latest",
//"scaladoc.geotrellis.base_url" -> "https://geotrellis.github.io/scaladocs/latest",
// "snip.pyexamples.base_dir" -> (baseDirectory.value + "/../pyrasterframes/python/test/examples")
)
Paradox / paradoxTheme := Some(builtinParadoxTheme("generic"))
Paradox / paradoxGroups := Map("Language" -> Seq("Scala", "Python"))
Paradox / paradoxTheme / sourceDirectory := sourceDirectory.value / "main" / "paradox" / "_template"
Compile / doc / scalacOptions++= Seq( "-J-Xmx6G", "-no-link-warnings")
Tut / run / fork := true
Tut / run / javaOptions := Seq("-Xmx8G", "-Dspark.ui.enabled=false")
val skipTut = false
if (skipTut) Seq(
Paradox / sourceDirectory := tutSourceDirectory.value,
makeSite := makeSite.dependsOn(Compile / unidoc).value
)
else Seq(
Paradox / paradox := (Paradox / paradox).dependsOn(tutQuick).value,
Paradox / sourceDirectory := tutTargetDirectory.value,
makeSite := makeSite.dependsOn(Compile / unidoc).value
)