Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect existing docs from https://arrow.apache.org/ to https://datafusion.apache.org/ #10194

Closed
Tracked by #9691
alamb opened this issue Apr 23, 2024 · 5 comments · Fixed by apache/arrow-site#505
Closed
Tracked by #9691
Labels
enhancement New feature or request

Comments

@alamb
Copy link
Contributor

alamb commented Apr 23, 2024

Is your feature request related to a problem or challenge?

in #10190 the datafusion documentation is now published to https://datafusion.apache.org/

(thanks @phillipleblanc !)

Previously, it was published at https://arrow.apache.org/datafusion/

It is important I think that all existing links continue to work so bookmarks and search engine results find the content

Describe the solution you'd like

I would like to ensure that when someone goes to https://arrow.apache.org/datafusion/ they get redirected to https://datafusion.apache.org

This should work not just for the main page, but for all sub pages (that were existing at the time of writing) as well. So for example

https://arrow.apache.org/datafusion/library-user-guide/index.html --> https://datafusion.apache.org/library-user-guide/index.html

Note #10124 ideally would like to redirect
https://arrow.apache.org/datafusion/user-guide/cli.html --> https://datafusion.apache.org/user-guide/cli/index.html -->

Describe alternatives you've considered

The only thing I could think of is creating explicit redirect pages for each .html page in https://github.com/apache/arrow-site

Additional context

No response

@alamb alamb added the enhancement New feature or request label Apr 23, 2024
@alamb
Copy link
Contributor Author

alamb commented Apr 23, 2024

Here is the existing list of html files, found using

cd ~/Software/datafusion/docs
./build.sh
find build/html -name '*.html'

Here is the output

build/html/contributor-guide/index.html
build/html/contributor-guide/architecture.html
build/html/contributor-guide/quarterly_roadmap.html
build/html/contributor-guide/specification/index.html
build/html/contributor-guide/specification/invariants.html
build/html/contributor-guide/specification/output-field-name-semantic.html
build/html/contributor-guide/communication.html
build/html/contributor-guide/roadmap.html
build/html/index.html
build/html/user-guide/example-usage.html
build/html/user-guide/dataframe.html
build/html/user-guide/cli/index.html
build/html/user-guide/cli/datasources.html
build/html/user-guide/cli/overview.html
build/html/user-guide/cli/installation.html
build/html/user-guide/cli/usage.html
build/html/user-guide/configs.html
build/html/user-guide/expressions.html
build/html/user-guide/introduction.html
build/html/user-guide/faq.html
build/html/user-guide/sql/select.html
build/html/user-guide/sql/scalar_functions.html
build/html/user-guide/sql/index.html
build/html/user-guide/sql/ddl.html
build/html/user-guide/sql/subqueries.html
build/html/user-guide/sql/information_schema.html
build/html/user-guide/sql/aggregate_functions.html
build/html/user-guide/sql/data_types.html
build/html/user-guide/sql/dml.html
build/html/user-guide/sql/explain.html
build/html/user-guide/sql/operators.html
build/html/user-guide/sql/sql_status.html
build/html/user-guide/sql/write_options.html
build/html/user-guide/sql/window_functions.html
build/html/_static/webpack-macros.html
build/html/genindex.html
build/html/library-user-guide/using-the-dataframe-api.html
build/html/library-user-guide/using-the-sql-api.html
build/html/library-user-guide/index.html
build/html/library-user-guide/profiling.html
build/html/library-user-guide/custom-table-providers.html
build/html/library-user-guide/building-logical-plans.html
build/html/library-user-guide/catalogs.html
build/html/library-user-guide/adding-udfs.html
build/html/library-user-guide/extending-operators.html
build/html/library-user-guide/working-with-exprs.html
build/html/search.html

@alamb
Copy link
Contributor Author

alamb commented Apr 23, 2024

After #10190 was merged (see #10190 (comment))

It seems like https://datafusion.apache.org/ will get new content and https://arrow.apache.org/datafusion/ has an older snapshot of the site

This bodes well I think to simply make a few static redirects from the arrow-site and call it a day

@alamb
Copy link
Contributor Author

alamb commented Apr 23, 2024

l played around with this a little with apache/arrow-site#502

It mostly works, but there are still a few corner cases I need to figure out

@alamb
Copy link
Contributor Author

alamb commented Apr 23, 2024

Ok, I think apache/arrow-site#502 is now ready to go

kou pushed a commit to apache/arrow-site that referenced this issue Apr 25, 2024
…sion to https://datafusion.apache.org/ (#505)

Closes apache/datafusion#10194
Closes #502

Per @kou 's suggestion in
#502 (comment),
this PR adds a `.htaccess` file with a redirect from all
`www.apache.org/datafusion` urls to `datadfusion.apache.org` urls (I
think)

Documentaiton on these files is here:
https://infra.apache.org/project-site.html

I don't really know how to test this other than "in production"
@alamb
Copy link
Contributor Author

alamb commented Apr 25, 2024

We fixed this with apache/arrow-site#505 and apache/arrow-site#506

@alamb alamb closed this as completed Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant