Redirect to stable, add sitemap.xml#47
Conversation
|
This pull request fixes 1539 alerts when merging ee16eeb into ae49ba9 - 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. |
|
How do we update this? Please update the release manager docs. |
|
I think the changes in the second commit of matplotlib/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? |
|
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 we want 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... |
Close #35
Pretty hard to review, but all that has happened is:
This is a suggested change of the site org.
soft link
stableto3.3.3This would of course need to be updated on a new release
softlink all of
roottostableEverything 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.htmlwill not resolve tomatplotlib.org/stable/index.htmlHowever, we can tell google etc to look instable. We can also set the canonical url to bematplotlib.org/stable.sitemap.xmlThis should weight the old docs lower than the new docs.