-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Purge the first edition stubs from search engines #1788
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
Conversation
Regarding requirements mentioned in #1800
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To do that I had to copy the whole index.hbs and update move the theme directory to location required by the current mdBook version.
This is a bit unfortunate, but we can live with it.
Thanks for this! I have the question about 0.1 vs 0.2. Could you also do this for the second edition as well, please? Thank you!
I've changed the approach. I've removed the unnecessary upgrade to mdbook, and complex index template. It's now a minimal template, and specifically for mdbook 0.1.7 used by this book. |
I can make another PR for mdbook upgrade if you're interested. |
Triage: Looks like |
I've copied the change to |
Changes requested have been made
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's give this a try! Note that the book rides the release trains, so this will take time to get to doc.rust-lang.org/stable.
Thanks @carols10cents I'll try to get it on stable ASAP. #1832 |
Update book submodule Updates the book to the latest commit This is to include [documentation SEO fix](rust-lang/book#1788) ASAP.
Exclude old book redirect stubs from search engines Adds `<meta name="robots" content="noindex,follow">` to the `<head>` of old stub pages pointing to the second edition of the book. This is continuation of rust-lang/book#1788
Apparently this is still an annoying problem for users: https://users.rust-lang.org/t/why-are-links-to-the-old-book-still-floating-around/24656
This adds
<meta name="robots" content="noindex,follow">
to first edition's pages in order to remove them from search engines.To do that I had to copy the whole index.hbs
and update move the theme directory to location required by the current mdBook version.