This is an automated email from the ASF dual-hosted git repository. gengliang pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/spark-website.git
The following commit(s) were added to refs/heads/asf-site by this push: new a282ff36a add sql api page into sitemap.xml (#387) a282ff36a is described below commit a282ff36af37632d36f3bd981638567cad3a1279 Author: Gengliang Wang <gengli...@apache.org> AuthorDate: Tue May 10 18:43:38 2022 +0800 add sql api page into sitemap.xml (#387) Currently, Google search shows outdated result for Spark SQL functions. For example, searching date_trunc spark will show the result https://spark.apache.org/docs/2.3.0/api/sql/index.html. Note that the example of date_trunc is wrong. The latest example is correct but it is not shown in google search. This doesn't happen to other APIs. For example, search spark rdd scala api will show the latest API page. I think the problem is on the sitemap.xml. We should include SQL API homepage. --- site/sitemap.xml | 7 ++++++- sitemap.xml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/site/sitemap.xml b/site/sitemap.xml index 3663e44e2..3f7c235cc 100644 --- a/site/sitemap.xml +++ b/site/sitemap.xml @@ -137,6 +137,11 @@ <changefreq>weekly</changefreq> <priority>1.0</priority> </url> +<url> + <loc>https://spark.apache.org/docs/latest/api/sql/index.html</loc> + <changefreq>weekly</changefreq> + <priority>1.0</priority> +</url> <!-- Auto-generate sitemap for rest of site content --> <url> <loc>https://spark.apache.org/releases/spark-release-3-1-3.html</loc> @@ -985,4 +990,4 @@ <changefreq>weekly</changefreq> </url> -</urlset> \ No newline at end of file +</urlset> diff --git a/sitemap.xml b/sitemap.xml index f3c4cb92c..257359ef9 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -140,6 +140,11 @@ sitemap: false <changefreq>weekly</changefreq> <priority>1.0</priority> </url> +<url> + <loc>https://spark.apache.org/docs/latest/api/sql/index.html</loc> + <changefreq>weekly</changefreq> + <priority>1.0</priority> +</url> <!-- Auto-generate sitemap for rest of site content --> {% for post in site.posts %}<url> <loc>{{ site.url }}{{ post.url }}</loc> @@ -151,4 +156,4 @@ sitemap: false <changefreq>weekly</changefreq> </url>{% endif %} {% endfor %} -</urlset> \ No newline at end of file +</urlset> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org