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 |
||
|---|---|---|
| .. | ||
| markdown | ||
| render | ||
| static | ||
| toc | ||
| escape.rs | ||
| format.rs | ||
| highlight.rs | ||
| item_type.rs | ||
| layout.rs | ||
| markdown.rs | ||
| render.rs | ||
| sources.rs | ||
| static_files.rs | ||
| toc.rs | ||