Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.4 -> main #359

Merged
merged 8 commits into from
Aug 22, 2022
Prev Previous commit
Next Next commit
Fallback to apiURL if javadocioUrl does not exist
Format and wrap in lazy val
  • Loading branch information
valencik committed Aug 14, 2022
commit 89baeb7db87a20d09820f864592f703081f406e4
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +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)
tlSiteApiUrl.value.orElse(javadocioUrl).orElse(fallbackUrl)
},
tlSiteHeliumConfig := {
Helium
Expand Down