-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_documentation.sbt
45 lines (34 loc) · 1.02 KB
/
build_documentation.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
import scala.sys.process._
version in Paradox := {
if (isSnapshot.value) {
val lastVersionString = "git tag -l".!!.split("\r?\n").last
lastVersionString
}
else {
version.value
}
}
paradoxProperties += ("app-version" -> {
if (isSnapshot.value) {
val lastVersionString = "git tag -l".!!.split("\r?\n").last
lastVersionString
}
else {
version.value
}
})
enablePlugins(ParadoxSitePlugin, ParadoxMaterialThemePlugin, GhpagesPlugin)
git.remoteRepo := "git@github.com:QuadStingray/speedtest.git"
sourceDirectory in Paradox := sourceDirectory.value / "main" / "paradox"
enablePlugins(ParadoxMaterialThemePlugin)
Compile / paradoxMaterialTheme := {
ParadoxMaterialTheme()
.withLogoIcon("storage")
.withCopyright("© QuadStingray 2020")
.withColor("teal", "indigo")
.withRepository(uri("https://github.com/QuadStingray/speedtest"))
}
enablePlugins(SiteScaladocPlugin)
enablePlugins(GhpagesPlugin)
git.remoteRepo := "git@github.com:QuadStingray/speedtest.git"
ghpagesNoJekyll := true