-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Apply resource-suffix to search-index and source-files scripts as well #59776
Conversation
If you're changing the filename of Moreover, i feel like this changes the meaning of the resource suffix a little. So far, there's been a bit of a separation between files that received the resource suffix, and those that didn't. As far as i know, the distinction was that "static" files that didn't change when run on a different crate ( It's worth noting why this PR was called for. Docs.rs has been having issues recently with the CDN caching files like the search index on URLs like (Though, while typing this up, i also realized that a docs.rs-side solution that would also solve that problem is to always redirect non-exact versions to the latest version before serving the file. This would solve the issue by always serving the right version of the crate in the URL, thus never having the problem of which |
As far as I can tell, the links are done correctly. Only |
Oh, i totally missed the part that added the resource suffix to the layout call. The only other thing i would add is to do the same to |
579c3ef
to
4f28431
Compare
I added it for |
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.
Looks good, thanks so much! r=me when travis is green.
@bors: r=QuietMisdreavus |
📌 Commit 4f28431 has been approved by |
…x, r=QuietMisdreavus Apply resource-suffix to search-index and source-files scripts as well Fixes rust-lang#59771. r? @QuietMisdreavus
Rollup of 9 pull requests Successful merges: - rust-lang#59655 (Use a proc macro to declare preallocated symbols) - rust-lang#59769 (compiletest normalization: preserve non-JSON lines such as ICEs) - rust-lang#59776 (Apply resource-suffix to search-index and source-files scripts as well) - rust-lang#59784 (Suggest importing macros from the crate root) - rust-lang#59812 (Exclude profiler-generated symbols from MSVC __imp_-symbol workaround.) - rust-lang#59856 (update polonius-engine) - rust-lang#59874 (Clean up handling of `-Z pgo-gen` commandline option.) - rust-lang#59890 (Don't generate empty json variables) - rust-lang#59911 (Revert "compile crates under test w/ -Zemit-stack-sizes") Failed merges: r? @ghost
…x, r=QuietMisdreavus Apply resource-suffix to search-index and source-files scripts as well Fixes rust-lang#59771. r? @QuietMisdreavus
…x, r=QuietMisdreavus Apply resource-suffix to search-index and source-files scripts as well Fixes rust-lang#59771. r? @QuietMisdreavus
Rollup of 6 pull requests Successful merges: - #59776 (Apply resource-suffix to search-index and source-files scripts as well) - #59784 (Suggest importing macros from the crate root) - #59812 (Exclude profiler-generated symbols from MSVC __imp_-symbol workaround.) - #59874 (Clean up handling of `-Z pgo-gen` commandline option.) - #59890 (Don't generate empty json variables) - #59911 (Revert "compile crates under test w/ -Zemit-stack-sizes") Failed merges: r? @ghost
starting with rust-lang/rust#59776, the search index, aliases, and source file list are getting the resource suffix added to their file names. this means we can't route them from a static path any more. since we always check the static file router first, this will still allow serving `main.js` for rustdoc versions prior to the addition of `--static-root-path`, and also allows rustdoc to add per-crate javascript files without requiring docs.rs to update to handle it. (it also allows us to start hosting things *other* than rustdoc output as docs - e.g. mdbook output - in the future without changing the routing table massively.)
Fixes #59771.
r? @QuietMisdreavus