rust/src/librustdoc
Yuki Okushi 0b1870e7b9
Rollup merge of #81379 - GuillaumeGomez:improve-urls, r=Nemo157
Improve URLs handling

Fixes #81330.

Explanations: before this PR, when emptying the search input, we still had `?search=` in the URL, which wasn't very nice. Now, if the search is empty, we drop the `?search=` part.

Also, I realized while working on this PR that when we clicked on a menu link when we were on the search results, the search parameters would look like: `?search=#the-anchor`, which was super weird. Now, it looks like this: `?search=the-search#the-anchor`.

Also, I didn't use the `Url` very nice API because it's not available in any IE version (sadness...).

cc `````@lzutao`````
r? `````@Nemo157`````
2021-01-28 15:09:12 +09:00
..
clean Rollup merge of #81284 - jyn514:impl-times, r=wesleywiser 2021-01-28 15:09:10 +09:00
doctest Remove unnecessary semicolon from Rustdoc-generated code 2020-12-29 16:30:02 -05:00
formats Update to new rustdoc APIs 2021-01-27 10:05:06 +01:00
html Rollup merge of #81379 - GuillaumeGomez:improve-urls, r=Nemo157 2021-01-28 15:09:12 +09:00
json More cleanup 2021-01-27 10:05:06 +01:00
passes Rollup merge of #81284 - jyn514:impl-times, r=wesleywiser 2021-01-28 15:09:10 +09:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Simplfy color availability check 2020-11-17 10:33:14 +01:00
config.rs Remove CACHE_KEY global 2021-01-27 10:05:05 +01:00
core.rs Remove CACHE_KEY global 2021-01-27 10:05:05 +01:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs Rollup merge of #81264 - Swatinem:doctest-run-directory, r=jyn514 2021-01-24 22:09:59 +01:00
doctree.rs Move StructType to clean, remove it from Unions, make JSON output whether something is a union 2021-01-20 16:46:34 -05:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
fold.rs Rename VariantKind -> Variant 2021-01-15 13:55:03 -05:00
lib.rs Rollup merge of #81264 - Swatinem:doctest-run-directory, r=jyn514 2021-01-24 22:09:59 +01:00
markdown.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs Replace under-used ImplPolarity enum with a boolean 2021-01-09 14:59:37 +01:00
visit_ast.rs Remove doctree::Import 2021-01-15 12:49:45 -05:00
visit_lib.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00

For more information about how librustdoc works, see the rustc dev guide.