File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ inThisBuild(
13
13
" -feature" ,
14
14
" -encoding" ,
15
15
" utf8"
16
- )
16
+ ),
17
+ scmInfo := Some (
18
+ ScmInfo (url(" https://github.com/kornilova-l/scala-native-bindgen" ),
19
+ " scm:git:git@github.com:kornilova-l/scala-native-bindgen.git" )),
20
+ git.remoteRepo := scmInfo.value.get.connection.replace(" scm:git:" , " " )
17
21
))
18
22
19
23
val tests = project
@@ -91,11 +95,15 @@ lazy val tools = project in file("tools")
91
95
92
96
lazy val docs = project
93
97
.in(file(" docs" ))
94
- .enablePlugins(GhpagesPlugin , ParadoxSitePlugin )
98
+ .enablePlugins(GhpagesPlugin , ParadoxSitePlugin , ParadoxMaterialThemePlugin )
95
99
.settings(
96
- paradoxTheme := Some (builtinParadoxTheme(" generic" )),
97
100
paradoxProperties in Paradox ++= Map (
98
- " github.base_url" -> " https://github.com/kornilova-l/scala-native-bindgen/tree/master/ "
101
+ " github.base_url" -> s " ${scmInfo.value.get.browseUrl} "
99
102
),
100
- git.remoteRepo := " git@github.com:kornilova-l/scala-native-bindgen.git"
103
+ ParadoxMaterialThemePlugin .paradoxMaterialThemeSettings(Paradox ),
104
+ paradoxMaterialTheme in Paradox := {
105
+ (paradoxMaterialTheme in Paradox ).value
106
+ .withRepository(scmInfo.value.get.browseUrl.toURI)
107
+ .withColor(" indigo" , " indigo" )
108
+ }
101
109
)
Original file line number Diff line number Diff line change 1
- addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.3.7" )
2
- addSbtPlugin(" com.typesafe.sbt" % " sbt-site" % " 1.3.2" )
3
- addSbtPlugin(" com.typesafe.sbt" % " sbt-ghpages" % " 0.6.2" )
1
+ addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.3.7" )
2
+ addSbtPlugin(" com.typesafe.sbt" % " sbt-site" % " 1.3.2" )
3
+ addSbtPlugin(" io.github.jonas" % " sbt-paradox-material-theme" % " 0.4.0" )
4
+ addSbtPlugin(" com.typesafe.sbt" % " sbt-ghpages" % " 0.6.2" )
You can’t perform that action at this time.
0 commit comments