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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to