-
Notifications
You must be signed in to change notification settings - Fork 0
/
website.sbt
39 lines (35 loc) · 1.06 KB
/
website.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
addCommandAlias("website", "docs/mdoc; makeSite")
lazy val currentYear: String =
java.util.Calendar.getInstance().get(java.util.Calendar.YEAR).toString
enablePlugins(
SiteScaladocPlugin,
SitePreviewPlugin,
ScalaUnidocPlugin,
GhpagesPlugin
)
ScalaUnidoc / siteSubdirName := ""
addMappingsToSiteDir(
ScalaUnidoc / packageDoc / mappings,
ScalaUnidoc / siteSubdirName
)
git.remoteRepo := "[email protected]:cheleb/zio-pravega.git"
ghpagesNoJekyll := true
Compile / doc / scalacOptions ++= (scalaVersion.value match {
case thisScalaVersion if thisScalaVersion.startsWith("3.") =>
Seq(
"-siteroot",
"zio-pravega-docs/target/mdoc",
"-groups",
"-project-version",
version.value,
"-revision",
version.value,
"-project-footer",
s"Copyright (c) 2022-$currentYear, Olivier NOUGUIER",
"-social-links:github::https://github.com/cheleb,twitter::https://twitter.com/oNouguier",
"-Ygenerate-inkuire",
"-skip-by-regex:zio\\.pravega\\.docs\\..*",
"-skip-by-regex:html\\..*"
)
case _ => Seq.empty
})