Repository: spark
Updated Branches:
  refs/heads/branch-2.2 1f81ade0c -> 090b883fa


[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 dc22465f3e1ef5ad59306b1f591d6fd16d674eb7)
Signed-off-by: Marcelo Vanzin <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/090b883f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/090b883f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/090b883f

Branch: refs/heads/branch-2.2
Commit: 090b883fa7e0c4bf7f6abb3a5e8f82161fe3fb50
Parents: 1f81ade
Author: Marcelo Vanzin <[email protected]>
Authored: Tue Jun 12 09:32:14 2018 +0800
Committer: Marcelo Vanzin <[email protected]>
Committed: Wed Jun 13 16:12:20 2018 -0700

----------------------------------------------------------------------
 project/SparkBuild.scala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/090b883f/project/SparkBuild.scala
----------------------------------------------------------------------
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index aa46995..9bc9d2a 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -713,7 +713,8 @@ object Unidoc {
 
     scalacOptions in (ScalaUnidoc, unidoc) ++= Seq(
       "-groups", // Group similar methods together based on the @group 
annotation.
-      "-skip-packages", "org.apache.hadoop"
+      "-skip-packages", "org.apache.hadoop",
+      "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath
     ) ++ (
       // Add links to sources when generating Scaladoc for a non-snapshot 
release
       if (!isSnapshot.value) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to