-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
34 lines (29 loc) · 1.12 KB
/
build.sbt
File metadata and controls
34 lines (29 loc) · 1.12 KB
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
import org.tmt.sbt.docs.DocKeys._
import org.tmt.sbt.docs.Settings
ThisBuild / scalaVersion := "3.6.4"
ThisBuild / organizationName := "TMT Org"
ThisBuild / docsRepo := "https://github.com/tmtsoftware/tmtsoftware.github.io.git"
ThisBuild / docsParentDir := "esw-web-app-example"
ThisBuild / gitCurrentRepo := "https://github.com/tmtsoftware/esw-web-app-example"
version := sys.env.getOrElse("JITPACK_VERSION", "0.1.0-SNAPSHOT")
lazy val openSite =
Def.setting {
Command.command("openSite") { state =>
val uri = s"file://${Project.extract(state).get(siteDirectory)}/${docsParentDir.value}/${version.value}/index.html"
state.log.info(s"Opening browser at $uri ...")
java.awt.Desktop.getDesktop.browse(new java.net.URI(uri))
state
}
}
/* ================= Root Project ============== */
lazy val `esw-web-app-example` = project
.in(file("."))
.enablePlugins(GithubPublishPlugin)
.aggregate(docs)
.settings(
commands += openSite.value,
Settings.makeSiteMappings(docs)
)
/* ================= Paradox Docs ============== */
lazy val docs = project
.enablePlugins(ParadoxMaterialSitePlugin)