Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed

Conversation

jklymak
Copy link
Member

@jklymakjklymak commentedJan 18, 2021
edited
Loading

Close#35

Pretty hard to review, but all that has happened is:

This is a suggested change of the site org.

soft linkstable to3.3.3

This would of course need to be updated on a new release

lrwxr-xr-x 1 jklymak staff 5 Jan 17 17:41 stable -> 3.3.3

softlink all ofroot tostable

Everything that is in root that had a counterpart in3.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.

lrwxr-xr-x    1 jklymak staff   21 Jan 17 18:56 searchindex.js -> stable/searchindex.jslrwxr-xr-x    1 jklymak staff   18 Jan 17 18:56 search.html -> stable/search.htmllrwxr-xr-x    1 jklymak staff   23 Jan 17 18:56 py-modindex.html -> stable/py-modindex.htmllrwxr-xr-x    1 jklymak staff   18 Jan 17 18:56 objects.inv -> stable/objects.invlrwxr-xr-x    1 jklymak staff   17 Jan 17 18:56 index.html -> stable/index.htmllrwxr-xr-x    1 jklymak staff   20 Jan 17 18:56 genindex.html -> stable/genindex.htmllrwxr-xr-x    1 jklymak staff   20 Jan 17 18:56 contents.html -> stable/contents.htmllrwxr-xr-x    1 jklymak staff   18 Jan 17 18:56 citing.html -> stable/citing.htmllrwxr-xr-x    1 jklymak staff   21 Jan 17 18:56 Matplotlib.pdf -> stable/Matplotlib.pdflrwxr-xr-x    1 jklymak staff   12 Jan 17 18:56 users -> stable/userslrwxr-xr-x    1 jklymak staff   16 Jan 17 18:56 tutorials -> stable/tutorialslrwxr-xr-x    1 jklymak staff   25 Jan 17 18:56 thirdpartypackages -> stable/thirdpartypackageslrwxr-xr-x    1 jklymak staff   16 Jan 17 18:56 resources -> stable/resourceslrwxr-xr-x    1 jklymak staff   15 Jan 17 18:55 glossary -> stable/glossarylrwxr-xr-x    1 jklymak staff   14 Jan 17 18:55 gallery -> stable/gallerylrwxr-xr-x    1 jklymak staff   10 Jan 17 18:55 faq -> stable/faqlrwxr-xr-x    1 jklymak staff   12 Jan 17 18:55 devel -> stable/devellrwxr-xr-x    1 jklymak staff   10 Jan 17 18:55 api -> stable/apilrwxr-xr-x    1 jklymak staff   14 Jan 17 18:55 _static -> stable/_staticlrwxr-xr-x    1 jklymak staff   15 Jan 17 18:55 _sources -> stable/_sourceslrwxr-xr-x    1 jklymak staff   15 Jan 17 18:55 _modules -> stable/_moduleslrwxr-xr-x    1 jklymak staff   14 Jan 17 18:55 _images -> stable/_imageslrwxr-xr-x    1 jklymak staff   17 Jan 17 18:55 _downloads -> stable/_downloads

sitemap.xml

This should weight the old docs lower than the new docs.

@lgtm-com
Copy link

This pull requestfixes 1539 alerts when mergingee16eeb intoae49ba9 -view on LGTM.com

fixed alerts:

  • 952 for Variable defined multiple times
  • 310 for Unused import
  • 166 for Unused local variable
  • 39 for Unreachable code
  • 32 for Constant in conditional expression or statement
  • 11 for Implicit string concatenation in a list
  • 9 for Unhashable object hashed
  • 9 for Suspicious unused loop iteration variable
  • 7 for Module is imported more than once
  • 2 for First parameter of a method is not named 'self'
  • 2 for Except block handles 'BaseException'

@jklymak
Copy link
MemberAuthor

@jklymak
Copy link
MemberAuthor

ping@dstansby as well as@QuLogic and@tacaswell, as I think he has some experience and comments about organizing the webpage.

@QuLogic
Copy link
Member

QuLogic commentedJan 19, 2021
edited
Loading

How do we update this? Please update the release manager docs.

@jklymak
Copy link
MemberAuthor

I think the changes in the second commit ofmatplotlib/matplotlib#19319 take care of that...

Basically:

  • build into3.3.4 (as before)
  • linkstable to3.3.4/ (don't do the rsync step)
  • editsitemap.xml

@QuLogic
Copy link
Member

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
Copy link
MemberAuthor

jklymak commentedJan 19, 2021
edited
Loading

Nothing is "redirected". Its just soft linked. Everything that used to be top level and is also in 3.3.3 is soft linked tostable.stable is soft linked to3.3.3/. When you do a release and change the softlinkstable to3.3.4 it should just link there instead of3.3.3 and all the old top-level links will now point to3.3.4

So considerresources. This PR removed the top-levelresources and replaced it by a soft link toresources->stable/resources. You can now pointstable wherever you want and so long as it has resources subdirectorymatplotlib.org/resources will resolve to it.

@jklymak
Copy link
MemberAuthor

Oh, I think I misunderstood you. Do you mean if/3.3.3/boo/foo.html exists, but is removed in/3.3.4/boo, it should stay at/boo/foo.html? Now that I look at what we do, I guess that is indeed what we do.

I'd argue that is a mistake though - why would we keep files around that are only in old versions?

@QuLogic
Copy link
Member

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.

@jklymak
Copy link
MemberAuthor

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.

@jklymakjklymak mentioned this pull requestJan 19, 2021
1 task
@jklymak
Copy link
MemberAuthor

A less destructive version is at#48.

@jklymak
Copy link
MemberAuthor

I'll close in favour of#49, which conserves all old files as well...

@jklymakjklymak deleted the enh-redirect-to-stable branchJanuary 21, 2021 21:11
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

root pages should redirect to versioned pages
4 participants
@jklymak@QuLogic@tacaswell@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp