rust/src/librustdoc/html
Dylan DPC 154db50d86
Rollup merge of #71724 - GuillaumeGomez:doc-alias-improvements, r=ollie27
Doc alias improvements

After [this message](https://github.com/rust-lang/rust/issues/50146#issuecomment-496601755), I realized that the **doc alias**. So this PR does the followings:

 * Align the alias discovery on items added into the search-index. It brings a few nice advantages:
   * Instead of cloning the data between the two (in rustdoc source code), we now have the search-index one and aliases which reference to the first one. So we go from one big map containing a lot of duplicated data to just integers...
 * In the front-end (main.js), I improved the code around aliases to allow them to go through the same transformation as other items when we show the search results.
 * Improve the search tester in order to perform multiple requests into one file (I think it's better in this case than having a file for each case considering how many there are...)
    * I also had to add the new function inside the tester (`handleAliases`)

Once this PR is merged, I intend to finally stabilize this feature.

r? @ollie27

cc @rust-lang/rustdoc
2020-05-16 02:37:19 +02:00
..
markdown Update librustdoc ID tests 2020-05-06 09:59:47 +02:00
render * Update aliases data struct from HashMap to BTreeMap to have more deterministic results 2020-05-14 11:36:02 +02:00
static * Update aliases data struct from HashMap to BTreeMap to have more deterministic results 2020-05-14 11:36:02 +02:00
toc Format the world 2019-12-22 17:42:47 -05:00
escape.rs Format the world 2019-12-22 17:42:47 -05:00
format.rs Remove "important traits" feature 2020-02-27 14:51:22 +01:00
highlight.rs Dogfood or_patterns in rustdoc 2020-04-16 13:58:47 -07:00
item_type.rs Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes) 2020-03-05 16:38:24 +01:00
layout.rs Merge aliases and search-index 2020-05-07 20:08:08 +02:00
markdown.rs Rollup merge of #71928 - mibac138:strikethrough, r=GuillaumeGomez 2020-05-12 11:41:10 +02:00
render.rs Rollup merge of #71724 - GuillaumeGomez:doc-alias-improvements, r=ollie27 2020-05-16 02:37:19 +02:00
sources.rs rustdoc: Don't try to load source files from external crates 2020-04-08 18:35:17 +01:00
static_files.rs rustdoc: remove redundant static lifetimes (clippy::redundant_static_lifetimes) 2020-03-07 21:48:17 +01:00
toc.rs fix rustdoc warnings 2020-05-02 10:41:04 +02:00