Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-45098][DOCS] Custom jekyll-rediect-from redirect.html template…
… to fix doc redirecting ### What changes were proposed in this pull request? In https://dist.apache.org/repos/dist/dev/spark/v3.5.0-rc4-docs/_site/, these links are supposed to redirect to the correct targets, but failed because there are no `.html` extensions. - [building-with-maven.html](https://dist.apache.org/repos/dist/dev/spark/v3.5.0-rc4-docs/_site/building-with-maven.html) ---> [building-spark.html](https://dist.apache.org/repos/dist/dev/spark/v3.5.0-rc4-docs/_site/building-spark.html) - [sql-reference.html](https://dist.apache.org/repos/dist/dev/spark/v3.5.0-rc4-docs/_site/sql-reference.html) ---> [sql-ref.html](https://dist.apache.org/repos/dist/dev/spark/v3.5.0-rc4-docs/_site/sql-ref.html) This PR customs the redirect template to add extensions to fix this issue. Referencing https://github.com/jekyll/jekyll-redirect-from#customizing-the-redirect-template ### Why are the changes needed? Fix doc links, such as https://spark.apache.org/docs/latest/sql-reference.html ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? Build doc and verify locally. ```html <!DOCTYPE html> <html lang="en-US"> <meta charset="utf-8"> <title>Redirecting…</title> <link rel="canonical" href="/building-spark.html"> <script>location="/building-spark.html"</script> <meta http-equiv="refresh" content="0; url=/building-spark.html"> <meta name="robots" content="noindex"> <h1>Redirecting…</h1> <a href="/building-spark.html">Click here if you are not redirected.</a> </html>% ``` ### Was this patch authored or co-authored using generative AI tooling? no Closes #42848 from yaooqinn/SPARK-45098. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit 81bc38e) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
- Loading branch information