creativescala / creative-scala-theme   0.3.0

GitHub

A Creative Scala theme for Laika. HTML only.

Scala versions: 2.12
sbt plugins: 1.x

Creative Scala Theme

A Laika theme for Creative Scala.

Current Version

To use, add

addSbtPlugin("org.creativescala" %% "creative-scala-theme" % VERSION)

to project/plugins.sbt, replacing VERSION with the version number above.

Then, in your build.sbt

import laika.ast.Path
import laika.helium.config.TextLink
// Configure Laika
Laika / sourceDirectories := Seq(
  mdocOut.value,
  "my" / "javascript", // the directory where JS is found
  "my" / "css" // the directory where CSS is found
),
laikaTheme := CreativeScalaTheme.empty
  .withHome(TextLink.interal(Path.Root / "README.md", "My Project Name"))
  .addJs(Path.Root / "main.js") // JS files to include
  .addCss(Path.Root / "main.css") // CSS files to include
  .build