Skip to content

Commit 1c3540e

Browse files
authored
Merge pull request #549 from typelevel/pr/fix-laika-deprecatia
Address `tlSiteRelatedProjects` deprecation
2 parents b8d11bb + 4edad36 commit 1c3540e

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

build.sbt

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,22 @@ lazy val docs = project
218218
.settings(
219219
laikaConfig ~= { _.withRawContent },
220220
tlSiteApiPackage := Some("org.typelevel.sbt"),
221-
tlSiteRelatedProjects := Seq(
222-
"typelevel.g8" -> url("https://github.com/typelevel/typelevel.g8"),
223-
"sbt" -> url("https://www.scala-sbt.org/"),
224-
"sbt-crossproject" -> url("https://github.com/portable-scala/sbt-crossproject"),
225-
"mima" -> url("https://github.com/lightbend/mima"),
226-
"mdoc" -> url("https://scalameta.org/mdoc/"),
227-
"Laika" -> url("https://typelevel.org/Laika/"),
228-
"sbt-unidoc" -> url("https://github.com/sbt/sbt-unidoc")
229-
),
221+
tlSiteHelium ~= {
222+
import laika.helium.config._
223+
_.site.mainNavigation(appendLinks = Seq(
224+
ThemeNavigationSection(
225+
"Related Projects",
226+
TextLink.external("https://github.com/typelevel/typelevel.g8", "typelevel.g8"),
227+
TextLink.external("https://www.scala-sbt.org/", "sbt"),
228+
TextLink
229+
.external("https://github.com/portable-scala/sbt-crossproject", "sbt-crossproject"),
230+
TextLink.external("https://github.com/lightbend/mima", "MiMa"),
231+
TextLink.external("https://scalameta.org/mdoc/", "mdoc"),
232+
TextLink.external("https://typelevel.org/Laika/", "Laika"),
233+
TextLink.external("https://github.com/sbt/sbt-unidoc", "sbt-unidoc")
234+
)
235+
))
236+
},
230237
mdocVariables ++= {
231238
import coursier.complete.Complete
232239
import java.time._

0 commit comments

Comments
 (0)