Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Oct 18, 2023
1 parent 063b200 commit e4d635c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -279,20 +279,15 @@ lazy val docs = project
mdocVariables += ("API_LINK_BASE" -> s"https://www.javadoc.io/doc/org.typelevel/cats-docs_2.13/${mdocVariables
.value("VERSION")}/"),
laikaConfig := {
import laika.rewrite.link._
import laika.config._

laikaConfig.value.withRawContent
.withConfigValue("version", mdocVariables.value("VERSION"))
.withConfigValue(
LinkConfig.empty
.addApiLinks(
ApiLinks(
baseUri = s"https://www.javadoc.io/doc/org.typelevel/cats-docs_2.13/${mdocVariables.value("VERSION")}/"
),
ApiLinks(
baseUri = s"https://www.scala-lang.org/api/$Scala213/",
packagePrefix = "scala"
)
ApiLinks(s"https://www.javadoc.io/doc/org.typelevel/cats-docs_2.13/${mdocVariables.value("VERSION")}/"),
ApiLinks(s"https://www.scala-lang.org/api/$Scala213/").withPackagePrefix("scala")
)
)
},
Expand Down

0 comments on commit e4d635c

Please sign in to comment.