Skip to content
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

Update some docs.rs references to /latest/ #689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsha
Copy link

@jsha jsha commented Jan 19, 2023

When users search Google for certain terms, like [tokio delay], they wind up on outdated docs for tokio 0.1:
https://docs.rs/tokio/0.1/tokio/timer/struct.Delay.html.

On the docs.rs team we're working on improving things so users are more likely to find the latest docs on Google. It looks like certain old blog posts on tokio.rs are causing these tokio 0.1 doc URLs to rank highly, so I'd like to bump them to use the new /latest/ format.

When users search Google for certain terms, like [tokio delay],
they wind up on outdated docs for tokio 0.1:
https://docs.rs/tokio/0.1/tokio/timer/struct.Delay.html.

On the docs.rs team we're working on improving things so users are more
likely to find the latest docs on Google. It looks like certain old blog
posts on tokio.rs are causing these tokio 0.1 doc URLs to rank highly,
so I'd like to bump them to use the new /latest/ format.
Comment on lines -120 to +122
[delay]: https://docs.rs/tokio/0.1/tokio/timer/struct.Delay.html
[timeout]: https://docs.rs/tokio/0.1/tokio/timer/struct.Timeout.html
[interval]: https://docs.rs/tokio/0.1/tokio/timer/struct.Interval.html
[delay]: https://docs.rs/tokio/latest/tokio/timer/struct.Delay.html
[timeout]: https://docs.rs/tokio/latest/tokio/timer/struct.Timeout.html
[interval]: https://docs.rs/tokio/latest/tokio/timer/struct.Interval.html
Copy link
Contributor

@Darksonn Darksonn Jan 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the links. There's no timer module in the latest Tokio release, and the blog posts are about the 0.1 version specifically. If possible, I would prefer to add rel="nofollow" to the links instead. You might need to use html tags in the markdown to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants