You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2024/04/23 11:43:28 UTC
[PR] [WEBSITE]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
alamb opened a new pull request, #502:
URL: https://github.com/apache/arrow-site/pull/502
Closes https://github.com/apache/datafusion/issues/10194
We would like to redirect existing datafusion pages / links to the new website on https://datafusion.apache.org/ https://github.com/apache/datafusion/issues/10194 for more rationale
Changes:
1. Add a jekyll plugin for redirects
1. Add static pages for each existing static page
Testing locally when you navigate to the `DataFusion` link it correctly redirects

http://localhost:4000/datafusion redirects to https://datafusion.apache.org/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Website]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed pull request #502: [Website]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/
URL: https://github.com/apache/arrow-site/pull/502
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Website]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #502:
URL: https://github.com/apache/arrow-site/pull/502#discussion_r1576228555
##########
datafusion/contributor-guide/architecture.md:
##########
@@ -0,0 +1,28 @@
+---
Review Comment:
Fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Website]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #502:
URL: https://github.com/apache/arrow-site/pull/502#issuecomment-2073432866
It seems that we can use `.htaccess`: https://infra.apache.org/project-site.html (See the "Custom website directives using .htaccess files" section)
How about trying `.htaccess`?
```diff
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 00000000000..e19ec2a4fbd
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+Redirect permanent /datafusion/ https://datafusion.apache.org/
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Website]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #502:
URL: https://github.com/apache/arrow-site/pull/502#discussion_r1576112056
##########
datafusion/create.py:
##########
@@ -0,0 +1,94 @@
+# Creates redirect URLS
Review Comment:
This is the script I used to create the content in this PR -- in case anyone is interested
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WEBSITE]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #502:
URL: https://github.com/apache/arrow-site/pull/502#discussion_r1576112056
##########
datafusion/create.py:
##########
@@ -0,0 +1,94 @@
+# Creates redirect URLS
Review Comment:
This is the script I used to create the links -- in case anyone is interested
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WEBSITE]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #502:
URL: https://github.com/apache/arrow-site/pull/502#discussion_r1576109753
##########
datafusion/contributor-guide/architecture.md:
##########
@@ -0,0 +1,28 @@
+---
Review Comment:
However, I still haven't quite gotten the subdirectories working yet
http://localhost:4000/datafusion/user-guide/introduction.html
Shows me a "not found" error (as Jekyll has created `datafusion/user-guide/introduction/index.html` (the directory) rather than `datafusion/user-guide/introduction.html` (the file)
I ran out of time now, but I will play with this a bit more
##########
Gemfile:
##########
@@ -27,4 +27,5 @@ group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem "jekyll-jupyter-notebook"
gem "jekyll-seo-tag"
+ gem 'jekyll-redirect-from'
Review Comment:
I am not really familiar with Jekyll and thus I don't know if this is the right approach or not for creating a redirect 🤔 It seems to work but has lots of repeititon
Ideally I would like to just make a table with old URLs and redirects but I couldn't figure out how to do that
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Website]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "phillipleblanc (via GitHub)" <gi...@apache.org>.
phillipleblanc commented on code in PR #502:
URL: https://github.com/apache/arrow-site/pull/502#discussion_r1576260668
##########
datafusion/create.py:
##########
@@ -0,0 +1,95 @@
+# Creates redirect URLS
+import os
+
+
+urls = [
+ "contributor-guide/index.html",
+ "contributor-guide/architecture.html",
+ "contributor-guide/quarterly_roadmap.html",
+ "contributor-guide/specification/index.html",
+ "contributor-guide/specification/invariants.html",
+ "contributor-guide/specification/output-field-name-semantic.html",
+ "contributor-guide/communication.html",
+ "contributor-guide/roadmap.html",
+# "index.html",
+ "user-guide/example-usage.html",
+ "user-guide/dataframe.html",
+ "user-guide/cli/index.html",
+ "user-guide/cli/datasources.html",
+ "user-guide/cli/overview.html",
+ "user-guide/cli/installation.html",
+ "user-guide/cli/usage.html",
+ "user-guide/configs.html",
+ "user-guide/expressions.html",
+ "user-guide/introduction.html",
+ "user-guide/faq.html",
+ "user-guide/sql/select.html",
+ "user-guide/sql/scalar_functions.html",
+ "user-guide/sql/index.html",
+ "user-guide/sql/ddl.html",
+ "user-guide/sql/subqueries.html",
+ "user-guide/sql/information_schema.html",
+ "user-guide/sql/aggregate_functions.html",
+ "user-guide/sql/data_types.html",
+ "user-guide/sql/dml.html",
+ "user-guide/sql/explain.html",
+ "user-guide/sql/operators.html",
+ "user-guide/sql/sql_status.html",
+ "user-guide/sql/write_options.html",
+ "user-guide/sql/window_functions.html",
+ "library-user-guide/using-the-dataframe-api.html",
+ "library-user-guide/using-the-sql-api.html",
+ "library-user-guide/index.html",
+ "library-user-guide/profiling.html",
+ "library-user-guide/custom-table-providers.html",
+ "library-user-guide/building-logical-plans.html",
+ "library-user-guide/catalogs.html",
+ "library-user-guide/adding-udfs.html",
+ "library-user-guide/extending-operators.html",
+ "library-user-guide/working-with-exprs.html",
+]
+
+for url in urls:
+ print ("Processing", url)
+ local_file = os.path.splitext(url)[0]+'.md'
+ redirect_url = "https://datafusion.apache.org/{}".format(url)
+ print(" local_file:", local_file)
+ print(" redirect_url:", redirect_url)
+ content = """---
+layout: article
+title: Apache DataFusion Redirect
+description: Link to the Apache Arrow DataFusion project (formerly a sub project of Apache Arrow)
Review Comment:
```suggestion
description: Link to the Apache DataFusion project (formerly a sub project of Apache Arrow)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Website]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #502:
URL: https://github.com/apache/arrow-site/pull/502#issuecomment-2073437079
> How about trying .htaccess?
Thanks @kou -- I will give it a try
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Website]: Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ [arrow-site]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #502:
URL: https://github.com/apache/arrow-site/pull/502#discussion_r1576232027
##########
Gemfile:
##########
@@ -27,4 +27,5 @@ group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem "jekyll-jupyter-notebook"
gem "jekyll-seo-tag"
+ gem 'jekyll-redirect-from'
Review Comment:
@kou I think you are a Jekyll expert (at least are more knowledgable than I am) -- is this a reasonable way to implement redirects for the arrow-site? Or is there a better / preferred way?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org