Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
- Use Creative Scala theme
- Update Doodle, plugins, etc.
  • Loading branch information
noelwelsh committed Aug 23, 2024
1 parent 6e8dbdf commit 60617d2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 246 deletions.
15 changes: 6 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import scala.sys.process._
import laika.config.LaikaKeys
import laika.theme.Theme
import laika.config.LinkConfig
import laika.config.ApiLinks

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

val commonSettings = Seq(
libraryDependencies ++= Seq(
"org.creativescala" %%% "doodle" % "0.19.0",
"org.creativescala" %%% "doodle-svg" % "0.16.1"
"org.creativescala" %%% "doodle" % "0.23.0"
)
)

Expand All @@ -52,20 +51,18 @@ lazy val book = project
mdocOut := target.value / "pages",
Laika / sourceDirectories := Seq(
mdocOut.value,
sourceDirectory.value / "templates",
sourceDirectory.value / "js",
(examples / Compile / fastOptJS / artifactPath).value
.getParentFile() / s"${(examples / moduleName).value}-fastopt"
),
laikaExtensions ++= Seq(
laika.markdown.github.GitHubFlavor,
laika.parse.code.SyntaxHighlighting,
CreativeScalaDirectives
laika.format.Markdown.GitHubFlavor,
laika.config.SyntaxHighlighting,
),
laikaSite / target := target.value / "creative-scala",
laikaIncludeEPUB := false,
laikaIncludePDF := false,
laikaTheme := Theme.empty,
laikaTheme := CreativeScalaTheme.empty.build,
css := {
val src = sourceDirectory.value / "css"
val dest1 = mdocOut.value
Expand Down
232 changes: 0 additions & 232 deletions project/CreativeScalaDirectives.scala

This file was deleted.

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

0 comments on commit 60617d2

Please sign in to comment.