Skip to content

Commit

Permalink
Fallback to apiURL if javadocioUrl does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
valencik committed Aug 14, 2022
1 parent 854ffb3 commit 0db6572
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ object TypelevelSitePlugin extends AutoPlugin {
url(s"https://www.javadoc.io/doc/$o/$n/$v/$p")
}

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

0 comments on commit 0db6572

Please sign in to comment.