-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
[DOC/WEB]: Resolving 'Getting started' URL ambiguity in pandas.io(Issue #32307) #39303
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
Closed
SouravPal1995
wants to merge
12
commits into
pandas-dev:master
from
SouravPal1995:SouravPal1995_Issue32307
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
92f85e5
Redirected to docs/getting_started/index.html
SouravPal1995 d04e4e0
Merge remote-tracking branch 'upstream/master' into SouravPal1995_Iss…
SouravPal1995 c624629
Added proper encoding before file reading
SouravPal1995 42f5eb3
Rectified URL
SouravPal1995 929d106
Removed utf8 encoding
SouravPal1995 e0d26b5
Merge branch 'master' of https://github.com/pandas-dev/pandas into So…
SouravPal1995 f56dc9b
Merge branch 'master' of https://github.com/pandas-dev/pandas into So…
SouravPal1995 ca00d14
Added leading slash to 'Getting started' url
SouravPal1995 f2542dc
Removed the static getting_started.md
SouravPal1995 ddf5e95
Added a new entry to redirect
SouravPal1995 2ccc028
Merge branch 'master' of https://github.com/pandas-dev/pandas into So…
SouravPal1995 4d508a0
UPdated redirect.csv
SouravPal1995 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, hmm, now realizing this probably won't work for pages outside of
/docs/
. Any maintainers have thoughts about how to handle?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @afeld !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @jorisvandenbossche
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jreback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, this file is specifically for sphinx page (so under
/docs
in the url), and not for the website. So we will have to do something custom there if we want a redirect (I don't think there is a similar mechanism already).In the end, for those redirects listed in this file, we create a small html page with the actual redirection. See
pandas/doc/make.py
Lines 211 to 220 in 097ff0c
So one option would be to include a single hardcoded html file for this specific redirect, or otherwise add something similar to https://github.com/pandas-dev/pandas/blob/master/web/pandas_web.py which generates the static web pages
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this aspect be dealt with in a separate PR? I am not sure what to do. Should I revert this specific change in the
docs/redirects.csv
? Or should I add the aforementionedpandas/doc/make.py
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the change here in
redirects.csv
should be revertedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay... Thank you @jorisvandenbossche .. 😄 :
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After removing the change in this file, let's add
getting_started.html
with a<meta>
redirect to/docs/getting_started/index.html
.