-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_documentation.sbt
More file actions
36 lines (25 loc) · 846 Bytes
/
build_documentation.sbt
File metadata and controls
36 lines (25 loc) · 846 Bytes
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
import scala.sys.process._
val lastVersionString = "git tag -l".!!.split("\r?\n").last
version in Paradox := {
if (isSnapshot.value)
lastVersionString
else version.value
}
paradoxProperties += ("app-version" -> {
if (isSnapshot.value)
lastVersionString
else version.value
})
enablePlugins(ParadoxSitePlugin, ParadoxMaterialThemePlugin)
sourceDirectory in Paradox := sourceDirectory.value / "main" / "paradox"
Compile / paradoxMaterialTheme := {
ParadoxMaterialTheme()
.withLogoIcon("cloud")
.withCopyright("© QuadStingray 2018")
.withColor("teal", "indigo")
.withRepository(uri("https://github.com/QuadStingray/google-cloud-logging"))
}
enablePlugins(SiteScaladocPlugin)
enablePlugins(GhpagesPlugin)
git.remoteRepo := "git@github.com:QuadStingray/google-cloud-logging.git"
ghpagesNoJekyll := true