From 24af722dc66652a0c67b2408721fb446bc6411b0 Mon Sep 17 00:00:00 2001 From: Enno <458526+ennru@users.noreply.github.com> Date: Tue, 27 Aug 2019 11:02:15 +0200 Subject: [PATCH] Scaladoc: link to source and canonical (#27546) --- project/Doc.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/project/Doc.scala b/project/Doc.scala index cd400efa08..466dd42229 100644 --- a/project/Doc.scala +++ b/project/Doc.scala @@ -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 }