Skip to content

Commit

Permalink
Format and wrap in lazy val
Browse files Browse the repository at this point in the history
  • Loading branch information
valencik committed Aug 14, 2022
1 parent 0db6572 commit 4000172
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions site/src/main/scala/org/typelevel/sbt/TypelevelSitePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,12 @@ object TypelevelSitePlugin extends AutoPlugin {
val p = tlSiteApiPackage.value.fold("")(_.replace('.', '/') + "/index.html")
url(s"https://www.javadoc.io/doc/$o/$n/$v/$p")
}
lazy val fallbackUrl = for {
moduleId <- (ThisProject / tlSiteApiModule).value
apiURL <- moduleId.extraAttributes.get("e:info.apiURL")
} yield url(apiURL)

tlSiteApiUrl.value.orElse(javadocioUrl).orElse{
for {
moduleId <- (ThisProject / tlSiteApiModule).value
apiURL <- moduleId.extraAttributes.get("e:info.apiURL")
} yield url(apiURL)
}
tlSiteApiUrl.value.orElse(javadocioUrl).orElse(fallbackUrl)
},
tlSiteHeliumConfig := {
Helium
Expand Down

0 comments on commit 4000172

Please sign in to comment.