summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2018-03-30Auto merge of #49489 - kennytm:rollup, r=kennytmbors-3/+5
Rollup of 10 pull requests - Successful merges: #49443, #49445, #49446, #49463, #49464, #49466, #49468, #49473, #49484, #49486 - Failed merges:
2018-03-30Auto merge of #49412 - GuillaumeGomez:hide-type-decl, r=QuietMisdreavusbors-3/+15
Hide type declarations by default I'm not very happy for the moment about the rendering but the bases are here: <img width="610" alt="screen shot 2018-03-27 at 11 56 27" src="https://user-images.githubusercontent.com/3050060/37960492-0e045954-31b6-11e8-9cea-1ef8a3f980c4.png"> r? @QuietMisdreavus
2018-03-30Rollup merge of #49445 - GuillaumeGomez:light-theme, r=QuietMisdreavuskennytm-1/+1
Rename main theme into light theme r? @QuietMisdreavus
2018-03-30Rollup merge of #49443 - GuillaumeGomez:fix-tooltip-position, r=QuietMisdreavuskennytm-2/+4
Fix tooltip position r? @QuietMisdreavus
2018-03-29Rename main theme into light themeGuillaume Gomez-1/+1
2018-03-28Fix tooltip positionGuillaume Gomez-2/+4
2018-03-28Rollup merge of #49442 - GuillaumeGomez:text-overlap, r=QuietMisdreavuskennytm-4/+26
Fix text overlap Fixes #49006. r? @QuietMisdreavus
2018-03-28Rollup merge of #49439 - GuillaumeGomez:trait-impl-collapse, r=QuietMisdreavuskennytm-10/+15
Fix trait implementation not collapsing docs r? @QuietMisdreavus
2018-03-28Rollup merge of #49429 - GuillaumeGomez:fix-collapse-toggle-insertion, ↵kennytm-0/+3
r=QuietMisdreavus Fix collapse toggle insertions on impl with docs Just went through this one randomly... When an impl has docs, the collapse toggle isn't generated. This fixes it. r? @QuietMisdreavus
2018-03-28Fix text overlapGuillaume Gomez-4/+26
2018-03-28Fix trait implementation not collapsing docsGuillaume Gomez-10/+15
2018-03-27Fix collapse toggle insertions on impl with docsGuillaume Gomez-0/+3
2018-03-27Hide type declarations by defaultGuillaume Gomez-3/+15
2018-03-27Fix search appearanceGuillaume Gomez-3/+20
2018-03-23Fix IE11 searchGuillaume Gomez-0/+7
2018-03-18Fix events handling in rustdocGuillaume Gomez-33/+40
2018-03-15Rollup merge of #48831 - GuillaumeGomez:fix-theme-blink, r=QuietMisdreavuskennytm-1/+5
Fix blink when main theme is selected r? @QuietMisdreavus
2018-03-13Rollup merge of #48631 - focusaurus:remember-collapse-setting, r=QuietMisdreavuskennytm-0/+6
Remember state of top-level collapse toggle widget This change allows the big top-right expand/collapse toggle to remember its setting across navigation or page reloads. Prior to this change, there was this annoyance: - browse to some docs - Click the minus button to collapse them - browse to other docs (or reload the page) - Everything is expanded again The solution is based on storing a simple boolean flag in localStorage. I think it's a good improvement, but it does introduce the following potentially surprising behavior: - browse to some docs - click the minus button to collapse them - click to expand a particular item (not the main top-right big one) - reload the page, everything is collapsed Paired with @debugsteven on this.
2018-03-12Fix blink when main theme is selectedGuillaume Gomez-1/+5
2018-03-10Auto merge of #48755 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavusbors-36/+55
Multiple rustdoc fixes Fixes #48733. r? @QuietMisdreavus
2018-03-09Fix anchor not always being put at the right placeGuillaume Gomez-0/+3
2018-03-09Fix escape not working when searchbar selectedGuillaume Gomez-3/+6
2018-03-09Add missing items in the sidebar for functionsGuillaume Gomez-27/+29
2018-03-08Rollup merge of #48789 - GuillaumeGomez:horizontal-scroll, r=QuietMisdreavusManish Goregaokar-1/+1
Fix sidebar horizontal scroll Just like @onur said. r? @QuietMisdreavus
2018-03-06Fix sidebar horizontal scrollGuillaume Gomez-1/+1
2018-03-05Add resource-suffix option for rustdocGuillaume Gomez-1/+3
2018-03-05Don't generate '[+]'/'[-]' on 'empty' traitsGuillaume Gomez-7/+18
2018-03-01Rename doc collapse sentinal to rustdoc-collapsePeter Lyons-3/+3
2018-03-01Remember state of top-level collapse toggle widgetPeter Lyons-0/+6
2018-02-28Rollup merge of #48381 - GuillaumeGomez:rustdoc-theme-securities, ↵kennytm-11/+35
r=QuietMisdreavus Rustdoc theme securities Fixes #48375. Fixes #48376. r? @steveklabnik cc @QuietMisdreavus
2018-02-28Auto merge of #47894 - vi:rustdoc_foldable_impls, ↵bors-52/+144
r=GuillaumeGomez,QuietMisdreavus rustdoc: Foldable impl blocks Addresses #40363, #45720, #24483, #23986 and so on * Expands and refactors collapseDocs and toggleAllDocs * Adds [-] toggle to all impls (including inherent impl) * Makes it hiding though main css file, not though element inline style May need to be addressed: * "[-]" and anchor link copier are overlaid a bit * Inherent methods are also hidden by the global [-] toggle. * Auto-collapsing "Iterator" and so on by default is not implemented yet * Tested only shallowly and only in Chromiuim * No tests. Are there tests for css/js part here? * The new implementation may be a bit slower. What next steps are need to be done before the integration?
2018-02-20rustdoc: On mobile: hide §, adjust [+] positionVitaly _Vi Shukela-2/+6
2018-02-20Remove theme button outlineGuillaume Gomez-0/+4
2018-02-20Allow to not switch to a theme if it doesn't existGuillaume Gomez-11/+31
2018-02-20Change local storage name for rustdoc because of conflicts with mdbookGuillaume Gomez-1/+1
2018-02-19rustdoc: Reposition the § per GuillaumeGomez requestVitaly _Vi Shukela-1/+5
2018-02-18Fix inliningAaron Hill-3/+8
2018-02-18Cleanup formattingAaron Hill-6/+3
2018-02-18Generate documentation for auto-trait implsAaron Hill-2/+17
A new section is added to both both struct and trait doc pages. On struct/enum pages, a new 'Auto Trait Implementations' section displays any synthetic implementations for auto traits. Currently, this is only done for Send and Sync. On trait pages, a new 'Auto Implementors' section displays all types which automatically implement the trait. Effectively, this is a list of all public types in the standard library. Synthesized impls for a particular auto trait ('synthetic impls') take into account generic bounds. For example, a type 'struct Foo<T>(T)' will have 'impl<T> Send for Foo<T> where T: Send' generated for it. Manual implementations of auto traits are also taken into account. If we have the following types: 'struct Foo<T>(T)' 'struct Wrapper<T>(Foo<T>)' 'unsafe impl<T> Send for Wrapper<T>' // pretend that Wrapper<T> makes this sound somehow Then Wrapper will have the following impl generated: 'impl<T> Send for Wrapper<T>' reflecting the fact that 'T: Send' need not hold for 'Wrapper<T>: Send' to hold Lifetimes, HRTBS, and projections (e.g. '<T as Iterator>::Item') are taken into account by synthetic impls However, if a type can *never* implement a particular auto trait (e.g. 'struct MyStruct<T>(*const T)'), then a negative impl will be generated (in this case, 'impl<T> !Send for MyStruct<T>') All of this means that a user should be able to copy-paste a synthetic impl into their code, without any observable changes in behavior (assuming the rest of the program remains unchanged).
2018-02-17rustdoc: Fix position of collapse-toggle on small screensVitaly _Vi Shukela-0/+4
2018-02-17rustdoc: Remove visual overlap between § and [+]Vitaly _Vi Shukela-2/+3
2018-02-14Rollup merge of #47806 - PramodBisht:feature/47801, r=steveklabnikkennytm-2/+2
Changed color of struct link from #ff794d to #2dbfb8 for Rust docs This is in reference to https://github.com/rust-lang/rust/issues/47801 here I have changed the default color of struct link for `#ff794d` to `#2dbfb8` cc: @nagisa @timClicks
2018-02-10Rollup merge of #48080 - GuillaumeGomez:mobile-docs-fixes, r=QuietMisdreavuskennytm-32/+7
Hide theme button under menu in mobile mode and fix top margin issue … Fixes #48060. r? @QuietMisdreavus
2018-02-08Hide theme button under menu in mobile mode and fix top margin issue (in ↵Guillaume Gomez-32/+7
mobile too)
2018-02-08Fix missing rules for dark.cssGuillaume Gomez-0/+3
2018-02-07Rollup merge of #47810 - GuillaumeGomez:fix-theme-but-position, ↵Manish Goregaokar-4/+55
r=QuietMisdreavus Fix rendering issues on mobile Fixes #47723 r? @QuietMisdreavus
2018-02-07rustdoc: Fix doc and impl collapsing on small screensVitaly _Vi Shukela-1/+2
2018-02-07Revert "rustdoc: Move collapse toggle to the left"Vitaly _Vi Shukela-1/+1
This reverts commit 0885865e9065d6ef5a8b456b9665a63e9ffda290.
2018-02-04Improve big sidebar elements displayGuillaume Gomez-0/+18
2018-02-04Fix not selectable search inputGuillaume Gomez-0/+5