Closed
Description
Uses the same mechanism as #74, but for a very different purpose.
A common problem using docs.rs is that it's hard to find the latest version of the docs from Google. We mitigate this by having a 'go to latest version' button, but if you land on a search result halfway down the page, the header bar isn't shown. A possible way to get better results is to abuse rel=canonical
to point to /:crate/latest/:path
so it will be picked up by Google.
It'd be feasible to put rel=canonical in the <head>
since we inject styles there already.
#74 should be implemented before this to avoid telling Google we are more canonical than the original documentation.