about summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
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
2017-11-07Add "-" shortcutGuillaume Gomez-1/+3
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-11-01Rollup merge of #45450 - GuillaumeGomez:overlap-link, r=QuietMisdreavuskennytm-1/+11
Fix title heading overlap in rust doc Fixes #45158. To be noted that this margin only appears when a title is the first element. <img width="1440" alt="screen shot 2017-10-22 at 16 08 44" src="https://user-images.githubusercontent.com/3050060/31862746-6411070e-b743-11e7-9a75-4159e1f7f1d6.png"> r? @rust-lang/docs
2017-10-27Improve sidebar rendering and add methods listGuillaume Gomez-6/+21
2017-10-26Rollup merge of #45212 - GuillaumeGomez:sidebar-fixed, r=QuietMisdreavuskennytm-2/+3
Limit the sidebar height The sidebar is now fixed, which means its scrolling is independent of the main page now. r? @rust-lang/docs
2017-10-24Show src button and function version on mobile versionGuillaume Gomez-2/+6
2017-10-24Fix the sidebar heightGuillaume Gomez-2/+3
2017-10-22Remove useless top margin on first headingGuillaume Gomez-0/+1
2017-10-22Fix title heading overlap in rust docGuillaume Gomez-1/+10
2017-10-19Auto merge of #45288 - GuillaumeGomez:tab-key-binding, r=QuietMisdreavusbors-17/+32
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-17Auto merge of #45290 - GuillaumeGomez:fix-help, r=QuietMisdreavusbors-7/+18
Hide help when search bar is focused Fixes #45286 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-17/+32
2017-10-14Save selected search tabGuillaume Gomez-5/+23
2017-10-14Remove terribly useless and problematic margin when searching on mobileGuillaume Gomez-0/+4
2017-10-13Rollup merge of #45245 - stjepang:more-padding-between-impls, r=QuietMisdreavuskennytm-1/+1
Rustdoc: Increase padding between consecutive impls Currently, [implementors](https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html#implementors) list is a bit too condensed. More spacing makes the list easier to read. Check out [this comment](https://github.com/rust-lang/rust/issues/41879#issuecomment-333121118) to see what's the effect of this change. Closes #41879. cc @QuietMisdreavus
2017-10-13Rollup merge of #45240 - GuillaumeGomez:mobile-sidebar-improvements, ↵kennytm-5/+7
r=QuietMisdreavus Mobile sidebar improvements Very small changes, I just made the width of the sidebar of 100% and centered vertically both items a bit more: <img width="1440" alt="screen shot 2017-10-12 at 20 00 47" src="https://user-images.githubusercontent.com/3050060/31511496-302bb474-af88-11e7-8dab-2c88799eafcc.png"> r? @rust-lang/docs