You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ya...@apache.org on 2025/09/16 02:19:29 UTC

(spark) branch branch-3.5 updated: [SPARK-53577][DOCS] Fix Scaladoc source links for java sources

This is an automated email from the ASF dual-hosted git repository.

yao pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.5 by this push:
     new 2664e09d86dc [SPARK-53577][DOCS] Fix Scaladoc source links for java sources
2664e09d86dc is described below

commit 2664e09d86dc0f0f7a4b39187764f080147573dd
Author: Kent Yao <ya...@apache.org>
AuthorDate: Tue Sep 16 07:43:46 2025 +0900

    [SPARK-53577][DOCS] Fix Scaladoc source links for java sources
    
    ### What changes were proposed in this pull request?
    Replace `€{FILE_PATH}.scala` with `€{FILE_PATH_EXT}` as the placeholder for generating Scaladoc source links
    
    ### Why are the changes needed?
    Fix 404 for cases like https://spark.apache.org/docs/latest/api/scala/org/apache/spark/launcher/JavaModuleOptions.html
    
    ### Does this PR introduce _any_ user-facing change?
    no
    
    ### How was this patch tested?
    
    Build Scala doc locally to verify
    
    ### Was this patch authored or co-authored using generative AI tooling?
    no
    
    Closes #52338 from yaooqinn/SPARK-53577.
    
    Authored-by: Kent Yao <ya...@apache.org>
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
    (cherry picked from commit 10b27f3a5ad95d38a91301c34fd8afbe5b44a69d)
    Signed-off-by: Kent Yao <ya...@apache.org>
---
 project/SparkBuild.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 53c991652905..737d5383abd8 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -1488,7 +1488,7 @@ object Unidoc {
     ) ++ (
       // Add links to sources when generating Scaladoc for a non-snapshot release
       if (!isSnapshot.value) {
-        Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala")
+        Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH_EXT}")
       } else {
         Seq()
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org