summary refs log tree commit diff
path: root/src/librustdoc/html/static/main.js
AgeCommit message (Collapse)AuthorLines
2017-12-20Fix sidebar on iosGuillaume Gomez-9/+17
2017-12-18Rollup merge of #46824 - GuillaumeGomez:doc-sidebar, r=QuietMisdreavusGuillaume Gomez-1/+1
Fix dynamic crates listing in doc sidebar Fixes #46687. r? @QuietMisdreavus
2017-12-18Fix dynamic crates listing in doc sidebarGuillaume Gomez-1/+1
2017-12-15Improve results a bitGuillaume Gomez-2/+6
2017-12-15make doc search more relevantGuillaume Gomez-12/+7
2017-12-12Fix type filter in rustdoc jsGuillaume Gomez-4/+4
2017-12-07Fix JS errorsGuillaume Gomez-2/+8
2017-12-07Greatly improve sidebar when width < 700pxGuillaume Gomez-1/+37
2017-12-07Auto merge of #46221 - GuillaumeGomez:doc-script-load-speedup, r=nrcbors-2/+9
Speedup search loading when search url is received Fixes #45971. r? @nrc cc @rust-lang/docs
2017-12-06Auto merge of #45898 - JRegimbal:master, r=QuietMisdreavusbors-6/+6
Change "Types/modules" title of search tab to be more accurate From issue #45787. Used "In name" as per suggestion from @Seeker14491.
2017-12-05Changed tab names to those agreed upon.JRegimbal-6/+6
Tabs are "In Names", "In Parameters", and "In Return Types".
2017-12-01Fix deduplication of itemsGuillaume Gomez-3/+10
2017-11-26Fix global searchGuillaume Gomez-227/+227
2017-11-25Auto merge of #46081 - GuillaumeGomez:fix-path-search, r=QuietMisdreavusbors-82/+141
Fix path search Fixes #46015. r? @QuietMisdreavus
2017-11-23Speedup search loading when search url is receivedGuillaume Gomez-2/+9
2017-11-21Auto merge of #45039 - QuietMisdreavus:doc-spotlight, ↵bors-0/+28
r=GuillaumeGomez,QuietMisdreavus show in docs whether the return type of a function impls Iterator/Read/Write Closes #25928 This PR makes it so that when rustdoc documents a function, it checks the return type to see whether it implements a handful of specific traits. If so, it will print the impl and any associated types. Rather than doing this via a whitelist within rustdoc, i chose to do this by a new `#[doc]` attribute parameter, so things like `Future` could tap into this if desired. ### Known shortcomings ~~The printing of impls currently uses the `where` class over the whole thing to shrink the font size relative to the function definition itself. Naturally, when the impl has a where clause of its own, it gets shrunken even further:~~ (This is no longer a problem because the design changed and rendered this concern moot.) The lookup currently just looks at the top-level type, not looking inside things like Result or Option, which renders the spotlights on Read/Write a little less useful: <details><summary>`File::{open, create}` don't have spotlight info (pic of old design)</summary> ![image](https://user-images.githubusercontent.com/5217170/31209495-e59d027e-a950-11e7-9998-ceefceb71c07.png) </details> All three of the initially spotlighted traits are generically implemented on `&mut` references. Rustdoc currently treats a `&mut T` reference-to-a-generic as an impl on the reference primitive itself. `&mut Self` counts as a generic in the eyes of rustdoc. All this combines to create this lovely scene on `Iterator::by_ref`: <details><summary>`Iterator::by_ref` spotlights Iterator, Read, and Write (pic of old design)</summary> ![image](https://user-images.githubusercontent.com/5217170/31209554-50b271ca-a951-11e7-928b-4f83416c8681.png) </details>
2017-11-20Strongly improve search pathGuillaume Gomez-10/+37
2017-11-19Fix path search in docsGuillaume Gomez-82/+114
2017-11-18Add tooltip for important traits displayGuillaume Gomez-1/+1
2017-11-18Auto merge of #46073 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-45/+43
Rollup of 4 pull requests - Successful merges: #45767, #46044, #46066, #46071 - Failed merges:
2017-11-17Improve modal display and add JS eventsGuillaume Gomez-1/+16
2017-11-17First step for important traits UIGuillaume Gomez-1/+16
2017-11-17spotlight Iterator/Read/Write impls on function return typesQuietMisdreavus-3/+1
2017-11-17Fix primitive types not showing upGuillaume Gomez-45/+43
2017-11-15Support `extern type` in rustdoc.kennytm-1/+3
Fixes #45640.
2017-11-13"Types/modules" in tab to "In name"JRegimbal-2/+2
"Types/modules" doesn't properly describe the results since it includes other things whose name matches the search term.
2017-11-12Add "As parameters" items as wellGuillaume Gomez-22/+25
2017-11-12Improve result outputGuillaume Gomez-5/+8
2017-11-12Big JS optimizationGuillaume Gomez-15/+11
2017-11-12Add elements count in tab search titleGuillaume Gomez-6/+7
2017-11-12JS big updatesGuillaume Gomez-109/+254
2017-11-11Rollup merge of #45812 - GuillaumeGomez:links-and-search, r=QuietMisdreavusGuillaume Gomez-3/+31
Fix navbar click while in a search Fixes #45790.
2017-11-11Few improvements on search, history and titleGuillaume Gomez-5/+10
2017-11-10Allow to go back to previous searchGuillaume Gomez-0/+14
2017-11-07Add "-" shortcutGuillaume Gomez-0/+1
2017-11-06Fix navbar click while in a searchGuillaume Gomez-0/+9
2017-11-01Remove duplicated results in the searchGuillaume Gomez-47/+88
2017-11-01fix function not appearing in first tab when appearing in another one. ↵Guillaume Gomez-1/+2
Thanks to @Seeker14491 for this one!
2017-11-01Be more flexible when looking for something by using levenshtein methodGuillaume Gomez-8/+21
2017-11-01Better check for returned valueGuillaume Gomez-0/+14
2017-11-01Keep displaying good information when query is madeGuillaume Gomez-0/+1
2017-10-19Auto merge of #45288 - GuillaumeGomez:tab-key-binding, r=QuietMisdreavusbors-16/+31
Save the highlighted item when switching tab To be merged after #45281. r? @rust-lang/docs
2017-10-19Rollup merge of #45281 - GuillaumeGomez:tab-selection, r=QuietMisdreavuskennytm-5/+23
Save selected search tab Fixes #45278. r? @rust-lang/docs
2017-10-14Hide help when search bar is focusedGuillaume Gomez-7/+18
2017-10-14Save current highlighted item in search tabGuillaume Gomez-16/+31
2017-10-14Save selected search tabGuillaume Gomez-5/+23
2017-10-09Add tabs for search for better information accessGuillaume Gomez-22/+145
Make tabs work
2017-09-11Add arrow and improve displayGuillaume Gomez-0/+18
2017-08-17Fix ES5 regression with shorthand names.pravic-4/+4
Reverts 1b6c9605e4.
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-4/+4
Like #43008 (f668999), but _much more aggressive_.