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

Hide old docs from search engines via canonical link#24

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
JazzTap wants to merge3 commits intomatplotlib:masterfromJazzTap:rel-canonical

Conversation

JazzTap
Copy link

Project initiated with@JLegs to point search engines (and users, gently) at current docs. Dumb approach used: delete version string from url (and put absolute link to matplotlib.org to avoid baseurl shenanigans).

All HTML parsed through lxml by 'tools/docs_deprecator' notebook or script. Only change expected besides whitespace, and property ordering, is 1) a <link> at the bottom of <head> and 2) a <div> at the top of <body>. (The bot-forwarder and human-forwarder respectively.)

Corresponding comment in issue tracker:matplotlib/matplotlib#10016 (comment)

Note that in an ideal world we'd forward pages using a database of pages & their descendants, replacements, whatever. Their automatic computation is compute-heavy, as discussed above.

@QuLogic
Copy link
Member

There are aton of extraneous changes here; is there a way to get it to only do the two things you mentioned? It's not just whitespace changes that are added.

@JazzTap
Copy link
Author

That's lxml snapping all the docs to its grammar. But I didn't spot anything else beyond property re-ordering. Are there semantic changes?

As I understand it, all html is (was) machine-generated from source in the first place. But instead of parsing, one could regex carefully for the lines of form</head> <body> as the point of insertion.

@tacaswell
Copy link
Member

There appears to be a way to get git to not add whitespace only changes (https://stackoverflow.com/questions/3515597/add-only-non-whitespace-changes).

We should hold of on worry about the whitespace for now,@JazzTap and I are at the scipy sprints and agreed in person to focus on using thecleanup.py script to also add these changes to the files at the top level of the domain first.

@Carreau
Copy link

See#39 that only change a single line per file.

JazzTap reacted with thumbs up emoji

@jklymak
Copy link
Member

I'll close this in lieu of#49 which does the same thing almost. Thanks a lot for the work on this though - it was very helpful.

JazzTap reacted with hooray emoji

@jklymakjklymak closed thisFeb 2, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@JazzTap@QuLogic@tacaswell@Carreau@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp