Skip to content

Commit 60617d2

Browse files
committed
Update dependencies
- Use Creative Scala theme - Update Doodle, plugins, etc.
1 parent 6e8dbdf commit 60617d2

File tree

3 files changed

+12
-246
lines changed

3 files changed

+12
-246
lines changed

build.sbt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import scala.sys.process._
2-
import laika.config.LaikaKeys
3-
import laika.theme.Theme
2+
import laika.config.LinkConfig
3+
import laika.config.ApiLinks
44

55
val scala213 = "2.13.11"
66
val scala3 = "3.3.1"
@@ -29,8 +29,7 @@ lazy val build = taskKey[Unit]("Build the book")
2929

3030
val commonSettings = Seq(
3131
libraryDependencies ++= Seq(
32-
"org.creativescala" %%% "doodle" % "0.19.0",
33-
"org.creativescala" %%% "doodle-svg" % "0.16.1"
32+
"org.creativescala" %%% "doodle" % "0.23.0"
3433
)
3534
)
3635

@@ -52,20 +51,18 @@ lazy val book = project
5251
mdocOut := target.value / "pages",
5352
Laika / sourceDirectories := Seq(
5453
mdocOut.value,
55-
sourceDirectory.value / "templates",
5654
sourceDirectory.value / "js",
5755
(examples / Compile / fastOptJS / artifactPath).value
5856
.getParentFile() / s"${(examples / moduleName).value}-fastopt"
5957
),
6058
laikaExtensions ++= Seq(
61-
laika.markdown.github.GitHubFlavor,
62-
laika.parse.code.SyntaxHighlighting,
63-
CreativeScalaDirectives
59+
laika.format.Markdown.GitHubFlavor,
60+
laika.config.SyntaxHighlighting,
6461
),
6562
laikaSite / target := target.value / "creative-scala",
6663
laikaIncludeEPUB := false,
6764
laikaIncludePDF := false,
68-
laikaTheme := Theme.empty,
65+
laikaTheme := CreativeScalaTheme.empty.build,
6966
css := {
7067
val src = sourceDirectory.value / "css"
7168
val dest1 = mdocOut.value

project/CreativeScalaDirectives.scala

Lines changed: 0 additions & 232 deletions
This file was deleted.

project/plugins.sbt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.4")
2-
addSbtPlugin("org.planet42" % "laika-sbt" % "0.19.0")
3-
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.3")
4-
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.0")
5-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
6-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.0")
2+
addSbtPlugin("org.typelevel" % "laika-sbt" % "1.1.0")
3+
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.4")
4+
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.1")
5+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
6+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
7+
addSbtPlugin("org.creativescala" %% "creative-scala-theme" % "0.2.1")

0 commit comments

Comments
 (0)