Skip to content

DOC: add redirects to ensure old links instead of building the docstring page #9911

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

Merged

Conversation

jorisvandenbossche
Copy link
Member

We still have a lot of API pages with 'old' namespace usage (eg pandas.io.parsers.read_csv instead of pandas.read_csv as how it should show up in the documentation). Now we build the pages as well, this PR changes this in adding redirect pages.

(The reason I care about this is that googling eg read_csv still often turns up the old page (although I don't know how fast this disappears when we would just remove it) and these are therefore used a lot on eg SO)

@jorisvandenbossche jorisvandenbossche added this to the 0.16.1 milestone Apr 15, 2015
jorisvandenbossche added a commit that referenced this pull request Apr 25, 2015
DOC: add redirects to ensure old links instead of building the docstring page
@jorisvandenbossche jorisvandenbossche merged commit 78167e1 into pandas-dev:master Apr 25, 2015
@shoyer
Copy link
Member

shoyer commented Apr 25, 2015

Does Google pick this up as a permanent redirect? In theory, I think that sort of thing is possible (redirecting the links in search results before users even click on them).

@jorisvandenbossche
Copy link
Member Author

@shoyer Not really an idea, no expert at that. If there is a better solution, I am all ears (certainly as I would like to restructure the tutorial docs as well later on, which would make a lot of links invalid).

I quickly did some google search, and you probably mean a 301 redirect (instead of the meta refresh I did here)?

@shoyer
Copy link
Member

shoyer commented Apr 27, 2015

Yeah, in theory I think a 301 redirect would be preferable. But it looks like that's only possible to do with server-side code, not inside an HTML page.

@jorisvandenbossche
Copy link
Member Author

Depending on how the pydata server is hosted, I suppose we could add a .htaccess file with this: http://sphinx-doc.org/latest/config.html#confval-html_extra_path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants