summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2017-12-20Fix sidebar on iosGuillaume Gomez-10/+50
2017-12-18Rollup merge of #46825 - GuillaumeGomez:mobile-search, r=QuietMisdreavusGuillaume Gomez-0/+20
Improve search display on mobile r? @QuietMisdreavus
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-18Improve search display on mobileGuillaume Gomez-0/+20
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-13Rollup merge of #46672 - GuillaumeGomez:fix-type-filter-search, ↵kennytm-4/+4
r=QuietMisdreavus Fix type filter in rustdoc js Fixes #46612. r? @QuietMisdreavus
2017-12-12Fix type filter in rustdoc jsGuillaume Gomez-4/+4
2017-12-11Fix mobile doc style and improve search barGuillaume Gomez-4/+27
2017-12-09Auto merge of #46586 - GuillaumeGomez:fix-mobile-important-display, ↵bors-1/+9
r=QuietMisdreavus Fixes doc important trait display on mobile Fixes #46527. r? @QuietMisdreavus
2017-12-08Fixes doc important trait display on mobileGuillaume Gomez-1/+9
2017-12-07Rollup merge of #46526 - GuillaumeGomez:mobile-sidebar, r=QuietMisdreavusGuillaume Gomez-5/+68
Greatly improve sidebar when width < 700px Fixes #36531. r? @QuietMisdreavus A few screenshots: <img width="1440" alt="screen shot 2017-12-06 at 00 41 36" src="https://user-images.githubusercontent.com/3050060/33636875-6ad8b1a6-da1e-11e7-8d5b-d6d530ea5258.png"> <img width="1440" alt="screen shot 2017-12-06 at 00 41 40" src="https://user-images.githubusercontent.com/3050060/33636876-6af58196-da1e-11e7-82ab-b82768958037.png">
2017-12-07Rollup merge of #46444 - GuillaumeGomez:css-cleanup, r=QuietMisdreavusGuillaume Gomez-33/+100
Move colors to main.css r? @QuietMisdreavus
2017-12-07Fix JS errorsGuillaume Gomez-2/+8
2017-12-07Greatly improve sidebar when width < 700pxGuillaume Gomez-5/+62
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-06Rollup merge of #46502 - GuillaumeGomez:improve-search-style, r=QuietMisdreavusCorey Farwell-1/+10
Improve search style Fixes #46494. r? @QuietMisdreavus
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-04Improve search styleGuillaume Gomez-1/+10
2017-12-03Rollup merge of #46454 - GuillaumeGomez:search-overlap, r=QuietMisdreavusCorey Farwell-0/+1
Fix search results overlap Fixes #46434. r? @QuietMisdreavus
2017-12-03Auto merge of #46433 - GuillaumeGomez:dedup-items, r=QuietMisdreavusbors-3/+10
Fix deduplication of items Fixes #45968. r? @QuietMisdreavus
2017-12-02Fix search results overlapGuillaume Gomez-0/+1
2017-12-02Move colors to main.cssGuillaume Gomez-33/+100
2017-12-01Fix deduplication of itemsGuillaume Gomez-3/+10
2017-11-29Invert colors in important traits tooltipGuillaume Gomez-0/+6
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-3/+134
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/+2
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-17Add trait methods as wellGuillaume Gomez-1/+8
2017-11-17Improve modal display and add JS eventsGuillaume Gomez-7/+83
2017-11-17First step for important traits UIGuillaume Gomez-1/+47
2017-11-17spotlight Iterator/Read/Write impls on function return typesQuietMisdreavus-4/+5
2017-11-17Fix primitive types not showing upGuillaume Gomez-45/+43
2017-11-15Support `extern type` in rustdoc.kennytm-1/+5
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/+13
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