Skip to content

Commit 3e50376

Browse files
committed
[base-2] Provide source links in scaladocs
1 parent 2802a8e commit 3e50376

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ lazy val sharedSettings = Seq(
3737
"-doc-title", name.value,
3838
"-doc-version", (if ("-SNAPSHOT" == version.value) {"SNAPSHOT"} else {version.value}),
3939
"-doc-root-content", ((Compile / scalaSource).value / "rootdoc.md").toString,
40+
"-doc-source-url", s"https://github.com/${githubId}/tree/${if (version.value.endsWith("-SNAPSHOT")) {git.gitHeadCommit.value.get} else {version.value}}€{FILE_PATH}.scala",
4041
"-implicits",
4142
"-groups",
42-
"-sourcepath", baseDirectory.value.toString,
43+
"-sourcepath", baseDirectory.value.getParentFile.getParentFile.getParentFile.toString,
4344
)
4445
case _ => Seq(
4546
"-doc-root-content", ((Compile / scalaSource).value / "rootdoc.md").toString,

0 commit comments

Comments
 (0)