simpleinfra icon indicating copy to clipboard operation
simpleinfra copied to clipboard

Outdated (Rust 1.17.0) docs hosted on static.rust-lang.org

Open softmoth opened this issue 1 year ago • 3 comments

What needs to be fixed?

Old docs, with "master" in the URL, are accessible from static.rust-lang.org. This may show up in web search results, older forum posts, etc.

Page(s) Affected

https://static.rust-lang.org/doc/master/rust.html https://static.rust-lang.org/doc/master/reference.html

Suggested Improvement

Redirect to the current reference documentation: https://doc.rust-lang.org/reference/

softmoth avatar Sep 18 '24 02:09 softmoth

cc @rust-lang/infra

This repo doesn't manage that website, and I'm not sure what does

Manishearth avatar Sep 18 '24 17:09 Manishearth

The static-rust-lang-org s3 bucket contains a master folder with these outdated files.

I suggest to:

  • change the static lambda to implement that redirect you suggested
  • remove the master directory from the S3 bucket.

Do you want to send a PR to implement the redirect? :) we have a similar lambda here that you can use as another example.

marcoieni avatar Sep 20 '24 15:09 marcoieni

Pull request #571

softmoth avatar Sep 21 '24 16:09 softmoth

Deployed to production as well 👍 Thanks again for opening the issue and working on the implementation 🙌

marcoieni avatar Dec 02 '24 14:12 marcoieni