Purge the first edition stubs from search engines#1788
Purge the first edition stubs from search engines#1788carols10cents merged 2 commits intorust-lang:masterfrom
Conversation
|
Regarding requirements mentioned in #1800
|
steveklabnik
left a comment
There was a problem hiding this comment.
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
carols10cents
left a comment
There was a problem hiding this comment.
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.