You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2020/06/24 18:05:11 UTC

[spark] branch branch-3.0 updated: [SPARK-32078][DOC] Add a redirect to sql-ref from sql-reference

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

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


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 13231ff  [SPARK-32078][DOC] Add a redirect to sql-ref from sql-reference
13231ff is described below

commit 13231ff3640bddd5d8994cf690ccadaf38012224
Author: gatorsmile <ga...@gmail.com>
AuthorDate: Wed Jun 24 11:00:20 2020 -0700

    [SPARK-32078][DOC] Add a redirect to sql-ref from sql-reference
    
    ### What changes were proposed in this pull request?
    This PR is to add a redirect to sql-ref.html.
    
    ### Why are the changes needed?
    Before Spark 3.0 release, we are using sql-reference.md, which was replaced by sql-ref.md instead. A number of Google searches I’ve done today have turned up https://spark.apache.org/docs/latest/sql-reference.html, which does not exist any more. Thus, we should add a redirect to sql-ref.html.
    
    ### Does this PR introduce _any_ user-facing change?
    
    https://spark.apache.org/docs/latest/sql-reference.html will be redirected to https://spark.apache.org/docs/latest/sql-ref.html
    
    ### How was this patch tested?
    
    Build it in my local environment. It works well. The sql-reference.html file was generated. The contents are like:
    
    ```
    <!DOCTYPE html>
    <html lang="en-US">
      <meta charset="utf-8">
      <title>Redirecting&hellip;</title>
      <link rel="canonical" href="http://localhost:4000/sql-ref.html">
      <script>location="http://localhost:4000/sql-ref.html"</script>
      <meta http-equiv="refresh" content="0; url=http://localhost:4000/sql-ref.html">
      <meta name="robots" content="noindex">
      <h1>Redirecting&hellip;</h1>
      <a href="http://localhost:4000/sql-ref.html">Click here if you are not redirected.</a>
    </html>
    ```
    
    Closes #28914 from gatorsmile/addRedirectSQLRef.
    
    Authored-by: gatorsmile <ga...@gmail.com>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
    (cherry picked from commit d06604f60a8a2ba0877616370a20aa18be15f8c4)
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 docs/_config.yml | 3 +++
 docs/sql-ref.md  | 1 +
 2 files changed, 4 insertions(+)

diff --git a/docs/_config.yml b/docs/_config.yml
index db2f672..5f2970f 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -8,6 +8,9 @@ gems:
 kramdown:
   entity_output: numeric
 
+plugins:
+  - jekyll-redirect-from
+
 include:
   - _static
   - _modules
diff --git a/docs/sql-ref.md b/docs/sql-ref.md
index f88026b..8d0c673 100644
--- a/docs/sql-ref.md
+++ b/docs/sql-ref.md
@@ -1,6 +1,7 @@
 ---
 layout: global
 title: SQL Reference
+redirect_from: /sql-reference
 displayTitle: SQL Reference
 license: |
   Licensed to the Apache Software Foundation (ASF) under one or more


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