Scaladoc: link to source and canonical (#27546)

This commit is contained in:
Enno 2019-08-27 11:02:15 +02:00 committed by Arnout Engelen
parent 83a08ba4c1
commit 24af722dc6

View file

@ -44,7 +44,7 @@ object Scaladoc extends AutoPlugin {
}
def scaladocOptions(ver: String, base: File): List[String] = {
val urlString = GitHub.url(ver) + "/€{FILE_PATH}.scala"
val urlString = GitHub.url(ver) + "/€{FILE_PATH_EXT}#L€{FILE_LINE}"
val opts = List(
"-implicits",
"-groups",
@ -55,7 +55,10 @@ object Scaladoc extends AutoPlugin {
"-doc-title",
"Akka",
"-doc-version",
ver)
ver,
"-doc-canonical-base-url",
"https://doc.akka.io/api/akka/current/"
)
CliOptions.scaladocDiagramsEnabled.ifTrue("-diagrams").toList ::: opts
}