Skip to content

Explore if we can redirect the existing docs to the new ones when we delete them #15

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
palewire opened this issue May 13, 2016 · 3 comments

Comments

@palewire
Copy link
Owner

No description provided.

@gordonje
Copy link
Contributor

@palewire I'm not sure this is possible, based on this ticket which lead me to the this currently open one.

Removing old projects (and old versions of projects) seems like a feature many readthedocs users are requesting, and it seems like the readthedocs maintainers would prefer to allow their users to put projects into a disabled state and provide re-direct info (see this comment). Not yet implemented, though.

@palewire
Copy link
Owner Author

Thanks for doing this research. I wonder if we could simply insert an old-school HTML redirect tag into the page?

<meta http-equiv="refresh" content="0;URL='http://thetudors.example.com/'" />    

@gordonje
Copy link
Contributor

It's definitely not ideal. There's a weird flash for readers and their browser's back button will break. For these reasons, this approach is discouraged by, among others, the W3C.

But the only alternative I can think of is replacing all the content on each page with a link to the master docs and message that says "Go here". Not sure if that's better.

If we are going this route, we can use the rst meta directive. Basically, we'll need to add this to each page of our current docs:

.. meta::
   :http-equiv=refresh: 0;URL='http://django-calaccess.readthedocs.io/en/latest/'

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

No branches or pull requests

2 participants