Skip to content

Commit

Permalink
update README and Laika plugin, adjust manual build
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshalm committed Sep 14, 2023
1 parent 6207f4b commit a9f903a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scal
Latest Release
--------------

* The latest stable release is version **0.19.4**.
* The latest stable release is version **0.19.5**.
* The latest milestone release is version **1.0.0-M4**.

The library is published to Maven Central for Scala 3, 2.13, 2.12 and supports cats-effect 3.x and Scala.js 1.x.
Expand All @@ -29,7 +29,7 @@ while the 1.0 milestones are now published under `org.typelevel`:
// for version 0.19:
addSbtPlugin("org.planet42" % "laika-sbt" % "0.19.4")

// for version 1.0.0:
// for version 1.0:
addSbtPlugin("org.typelevel" % "laika-sbt" % "1.0.0-M4")
```

Expand Down
13 changes: 4 additions & 9 deletions project/ManualSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import laika.helium.config.{
TextLink,
VersionMenu
}
import laika.rewrite.link.{ ApiLinks, LinkConfig }
import laika.rewrite.link.{ ApiLinks, LinkConfig, LinkValidation }
import laika.rewrite.{ Version, Versions }
import laika.rewrite.nav.{ ChoiceConfig, CoverImage, SelectionConfig, Selections }
import laika.sbt.LaikaConfig
Expand Down Expand Up @@ -125,15 +125,10 @@ object ManualSettings {

}

// TODO - api links will not work on top level pages, but fine for now - change to absolute path
val config: LaikaConfig = LaikaConfig.defaults
.withConfigValue(
LinkConfig(
apiLinks = Seq(
ApiLinks("../api/")
), // TODO - will not work on top level pages, but fine for now - change to absolute path
excludeFromValidation = Seq(Root / "api") // TODO - adjust once 0.19.4 is out
)
)
.withConfigValue(LinkConfig.empty.addApiLinks(ApiLinks("../api/")))
.withConfigValue(LinkValidation.Global(Seq(Root / "api")))
.withConfigValue(
Selections(
SelectionConfig(
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.2")

addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")

addSbtPlugin("org.planet42" % "laika-sbt" % "0.19.3")
addSbtPlugin("org.planet42" % "laika-sbt" % "0.19.5")

addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.5.2")

0 comments on commit a9f903a

Please sign in to comment.