Skip to content

Commit

Permalink
[base-2] Provide source links in scaladocs
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrobdod committed Nov 30, 2024
1 parent 2802a8e commit 3e50376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ lazy val sharedSettings = Seq(
"-doc-title", name.value,
"-doc-version", (if ("-SNAPSHOT" == version.value) {"SNAPSHOT"} else {version.value}),
"-doc-root-content", ((Compile / scalaSource).value / "rootdoc.md").toString,
"-doc-source-url", s"https://github.com/${githubId}/tree/${if (version.value.endsWith("-SNAPSHOT")) {git.gitHeadCommit.value.get} else {version.value}}€{FILE_PATH}.scala",
"-implicits",
"-groups",
"-sourcepath", baseDirectory.value.toString,
"-sourcepath", baseDirectory.value.getParentFile.getParentFile.getParentFile.toString,
)
case _ => Seq(
"-doc-root-content", ((Compile / scalaSource).value / "rootdoc.md").toString,
Expand Down

0 comments on commit 3e50376

Please sign in to comment.