Skip to content

Commit 6d8db2a

Browse files
authored
Merge pull request #105 from jonas/site-improvements
Site improvements
2 parents 15ded8a + 2c72913 commit 6d8db2a

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

build.sbt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ inThisBuild(
1313
"-feature",
1414
"-encoding",
1515
"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:", "")
1721
))
1822

1923
val tests = project
@@ -91,11 +95,15 @@ lazy val tools = project in file("tools")
9195

9296
lazy val docs = project
9397
.in(file("docs"))
94-
.enablePlugins(GhpagesPlugin, ParadoxSitePlugin)
98+
.enablePlugins(GhpagesPlugin, ParadoxSitePlugin, ParadoxMaterialThemePlugin)
9599
.settings(
96-
paradoxTheme := Some(builtinParadoxTheme("generic")),
97100
paradoxProperties in Paradox ++= Map(
98-
"github.base_url" -> "https://github.com/kornilova-l/scala-native-bindgen/tree/master/"
101+
"github.base_url" -> scmInfo.value.get.browseUrl.toString
99102
),
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+
}
101109
)

docs/src/paradox/limitations/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Limitations
1+
# Limitations
22

33
There are multiple unsupported cases that should be considered when generating bindings:
44

project/plugins.sbt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
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")

0 commit comments

Comments
 (0)