forked from BlueBrain/nexus-bbp-domains
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
58 lines (56 loc) · 2.25 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
48
49
50
51
52
53
54
55
56
57
58
/*
scalafmt: {
style = defaultWithAlign
maxColumn = 150
align.tokens = [
{ code = "=>", owner = "Case" }
{ code = "?", owner = "Case" }
{ code = "extends", owner = "Defn.(Class|Trait|Object)" }
{ code = "//", owner = ".*" }
{ code = "{", owner = "Template" }
{ code = "}", owner = "Template" }
{ code = ":=", owner = "Term.ApplyInfix" }
{ code = "++=", owner = "Term.ApplyInfix" }
{ code = "+=", owner = "Term.ApplyInfix" }
{ code = "%", owner = "Term.ApplyInfix" }
{ code = "%%", owner = "Term.ApplyInfix" }
{ code = "%%%", owner = "Term.ApplyInfix" }
{ code = "->", owner = "Term.ApplyInfix" }
{ code = "?", owner = "Term.ApplyInfix" }
{ code = "<-", owner = "Enumerator.Generator" }
{ code = "?", owner = "Enumerator.Generator" }
{ code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))" }
]
}
*/
lazy val root = project
.in(file("."))
.enablePlugins(ParadoxMaterialThemePlugin, ParadoxSitePlugin, GhpagesPlugin)
.settings(
name := "bbp-schema-docs",
moduleName := "bbp-schema-docs",
// paradox settings
sourceDirectory in Paradox := sourceDirectory.value / "main" / "paradox",
ParadoxMaterialThemePlugin.paradoxMaterialThemeSettings(Paradox),
paradoxMaterialTheme in Paradox := {
ParadoxMaterialTheme()
.withColor("light-blue", "cyan")
.withFavicon("./assets/img/favicon-32x32.png")
.withLogo("./assets/img/logo.png")
.withCustomStylesheet("./assets/css/docs.css")
.withRepository(uri("https://github.com/BlueBrain/nexus-bbp-domains"))
.withSocial(
uri("https://github.com/BlueBrain"),
uri("https://gitter.im/INCF/neuroshapes"),
uri("https://gitter.im/BlueBrain/nexus")
)
.withCopyright("""The data models are Open Source and available under the CC-BY-4.0 License.<br/>|""".stripMargin)
},
paradoxNavigationDepth in Paradox := 4,
paradoxProperties in Paradox += ("github.base_url" -> "https://github.com/BlueBrain/nexus-bbp-domains/tree/master"),
// gh pages settings
git.remoteRepo := "[email protected]:BlueBrain/nexus-bbp-domains.git",
ghpagesNoJekyll := true,
ghpagesBranch := "gh-pages",
)
addCommandAlias("review", ";clean;paradox")