Skip to content

Commit 858e89b

Browse files
author
Marcelo Vanzin
committed
[SPARK-23732][DOCS] Fix source links in generated scaladoc.
Apply the suggestion on the bug to fix source links. Tested with the 2.3.1 release docs. Author: Marcelo Vanzin <[email protected]> Closes #21521 from vanzin/SPARK-23732. (cherry picked from commit dc22465) Signed-off-by: Marcelo Vanzin <[email protected]>
1 parent d405e66 commit 858e89b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/SparkBuild.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,8 @@ object Unidoc {
757757

758758
scalacOptions in (ScalaUnidoc, unidoc) ++= Seq(
759759
"-groups", // Group similar methods together based on the @group annotation.
760-
"-skip-packages", "org.apache.hadoop"
760+
"-skip-packages", "org.apache.hadoop",
761+
"-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath
761762
) ++ (
762763
// Add links to sources when generating Scaladoc for a non-snapshot release
763764
if (!isSnapshot.value) {

0 commit comments

Comments
 (0)