- Notifications
You must be signed in to change notification settings - Fork54
Redirect to stable, add sitemap.xml#47
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This pull requestfixes 1539 alerts when mergingee16eeb intoae49ba9 -view on LGTM.com fixed alerts:
|
An example of this working:https://jklymak.github.io/matplotlib.github.com/stable/index.html |
ping@dstansby as well as@QuLogic and@tacaswell, as I think he has some experience and comments about organizing the webpage. |
QuLogic commentedJan 19, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
How do we update this? Please update the release manager docs. |
I think the changes in the second commit ofmatplotlib/matplotlib#19319 take care of that... Basically:
|
Does this not replace everything at the top-level, thus deleting all the old versions of files without redirect? And will continue to do that for every release that deleted files? |
jklymak commentedJan 19, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Nothing is "redirected". Its just soft linked. Everything that used to be top level and is also in 3.3.3 is soft linked to So consider |
Oh, I think I misunderstood you. Do you mean if I'd argue that is a mistake though - why would we keep files around that are only in old versions? |
It's not that wewant to do this; it's just that it would break many old links, and@tacaswell would rather we put in redirects there. We haven't done this though, because there are tons of leftovers at this point. |
Well put me firmly in the camp of "no link is better than an obsolete link". We can add a nice 404 message that explains how to search the old versions. However as a stopgap we could just add the Sitamap.XMl and add a robots.txt that tells search engines to stop crawling the top level. |
A less destructive version is at#48. |
I'll close in favour of#49, which conserves all old files as well... |
Uh oh!
There was an error while loading.Please reload this page.
Close#35
Pretty hard to review, but all that has happened is:
This is a suggested change of the site org.
soft link
stable
to3.3.3
This would of course need to be updated on a new release
softlink all of
root
tostable
Everything that is in root that had a counterpart in
3.3.3
(which now is the same asstable
) is softlinked tostable
. This keeps all our old links exactly the same. Note thatmatplotlib.org/index.html
willnot resolve tomatplotlib.org/stable/index.html
However, we can tell google etc to look instable
. We can also set the canonical url to bematplotlib.org/stable
.sitemap.xml
This should weight the old docs lower than the new docs.