summary refs log tree commit diff
path: root/src/librustdoc/html/static/main.js
AgeCommit message (Collapse)AuthorLines
2019-05-18Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearthbors-1/+5
Fix attrs pos Fixes #60042. Screenshot: <img width="438" alt="Screenshot 2019-05-12 at 15 02 25" src="https://user-images.githubusercontent.com/3050060/57582606-1455ec00-74c7-11e9-9d4e-5ec4da4de7dd.png"> r? @rust-lang/rustdoc
2019-04-28Fix default value for setting "Auto-hide item methods' documentation"Dmitry Murzin-1/+1
2019-04-18Fixes attributes position in types declGuillaume Gomez-1/+5
2019-04-12Auto merge of #59622 - GuillaumeGomez:improve-one-char-search, r=QuietMisdreavusbors-3/+7
Ensure that exact matches come first in rustdoc search Fixes #59287. cc @scottmcm r? @QuietMisdreavus
2019-04-02Ensure that exact matches come first in rustdoc searchGuillaume Gomez-3/+7
2019-03-30Rollup merge of #59534 - laurmaedje:collapse-blanket-impls, r=GuillaumeGomezMazdak Farrokhzad-0/+8
rustdoc: collapse blanket impls in the same way as normal impls If the rustdoc setting _Auto-hide trait implementations documentation_ is activated (on by default), normal trait implementations are collapsed by default. Blanket impls on the other hand are not collapsed. I'm not sure whether this is intended, but considering that the blanket impls for `From`, `Into`, `TryFrom`, ... are on every type, it would reduce the documentation bloat if these would also be collapsed when the setting is active. (I'm not really familiar with the codebase and therefore just copied the code for the normal impl collapsing, but I could deduplicate it into a method, of course, too.)
2019-03-30Rollup merge of #59376 - davidtwco:finally-rfc-2008-variants, ↵Mazdak Farrokhzad-0/+5
r=petrochenkov,QuietMisdreavus RFC 2008: Enum Variants Part of #44109. See [Zulip topic](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/rfc-2008/near/132663140) for previous discussion. r? @petrochenkov cc @nikomatsakis
2019-03-29Collapse blanket impls in the same way as normal implsLaurenz-0/+8
2019-03-29Support non-exhaustive enum variants in rustdoc.David Wood-0/+5
This commit adds support for non-exhaustive enum variants in rustdoc, extending the existing support for non-exhaustive enums and structs.
2019-03-23Add testGuillaume Gomez-6/+10
2019-03-21Fix invalid returned types generationGuillaume Gomez-0/+3
2019-03-21Add bounds for return types as wellGuillaume Gomez-6/+12
2019-03-21Small generics search improvementGuillaume Gomez-1/+4
2019-03-02Fix "Auto-hide item methods documentation" settingGuillaume Gomez-32/+37
2019-02-20Rollup merge of #58336 - GuillaumeGomez:fix-search-results-interactions, ↵kennytm-2/+2
r=oli-obk Fix search results interactions The bug is visible when you search for "none": the second tab is empty and therefore it messes with the classes. Then when you try to use arrows on the third tab, it just crashes (because only 2 "search-results" are present and you're on tab 3). r? @QuietMisdreavus
2019-02-16Rollup merge of #58306 - GuillaumeGomez:crate-browser-history, r=QuietMisdreavuskennytm-1/+1
Don't default on std crate when manipulating browser history Fixes #58263. r? @QuietMisdreavus
2019-02-10Rollup merge of #58297 - GuillaumeGomez:cleanup-js, r=QuietMisdreavusGuillaume Gomez-8/+6
Cleanup JS a bit r? @QuietMisdreavus
2019-02-10Add trait aliases to js typesGuillaume Gomez-1/+3
2019-02-10Fix search results interactionsGuillaume Gomez-2/+2
2019-02-08Don't default on std crate when manipulating browser historyGuillaume Gomez-1/+1
2019-02-08Cleanup JS a bitGuillaume Gomez-8/+6
2019-02-08fix rustdoc JShrls-1/+1
2019-02-07Rollup merge of #58150 - ↵Guillaume Gomez-8/+9
GuillaumeGomez:dont-apply-impl-collapse-rules-to-trait-impls, r=Manishearth Don't apply impl block collapse rules to trait impls Fixes #58147. r? @QuietMisdreavus
2019-02-07Rollup merge of #58146 - GuillaumeGomez:dont-collapse-everything, ↵Guillaume Gomez-2/+20
r=QuietMisdreavus Prevent automatic collapse of methods impl blocks Fixes #57582. r? @QuietMisdreavus
2019-02-07Rollup merge of #57504 - GuillaumeGomez:re-enable-history, r=QuietMisdreavusGuillaume Gomez-2/+1
Re-enable history api on file:// protocol Fixes #57135. I tested locally on chrome (since it was the browser having issues with history management on `file://` protocol) and it worked fine so I guess we can re-enable it. r? @QuietMisdreavus
2019-02-07Don't apply impl block collapse rules to trait implsGuillaume Gomez-8/+9
2019-02-04Prevent automatic collapse of methods impl blocksGuillaume Gomez-2/+20
2019-01-17End fixing search index minificationGuillaume Gomez-2/+2
2019-01-15Rollup merge of #57614 - GuillaumeGomez:fix-crate-filtering, r=QuietMisdreavusMazdak Farrokhzad-1/+1
[rustdoc] Fix crates filtering box not being filled Currently, the filter crate box (at the left of the search input) is always empty. To get the number of keys of dictionary in JS, you need to call `Object.keys()` on it. r? @QuietMisdreavus
2019-01-15Fix crates filtering box not being filledGuillaume Gomez-1/+1
2019-01-13Rollup merge of #56874 - JohnHeitmann:docs-spacing, r=GuillaumeGomezMazdak Farrokhzad-1/+10
Simplify foreign type rendering. Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans. Reduces element count on the `std::iter::Iterator` page by 30%. On my laptop it drops Iterator page load time from ~15s to ~10s. Frame times during scrolling are a hair lower too. Known visual changes (happy to tweak based on feedback): * The main `impl ...` headers are now getting the default, larger, h3 font size. This was an accident, but I liked how it turned out so I didn't fix it. * There's a hair less vertical spacing between the end of a where block and the start of the next fn. Now, all spacing is consistent. I think this looks a bit worse. I may tweak vertical spacing more here or in a follow-up that cleans up vertical spacing more broadly. * "[src]" links are all sized at 17px. A few were 19px in the original. I haven't yet done heavy cross-browser or cross-crate testing. I was hoping to get a quick thumbs up or thumbs down here at this first draft, then if this is on the right track I'll spend some time on that testing. TODO: - [x] Test on Chrome - [x] Test on Firefox - [ ] ~~Test on UC Android~~ - [x] Test on Edge - [x] Test on iOS safari - [x] Test on desktop safari - [x] Update automated tests - [x] Increase vertical margin - [x] Fix "Important traits for" hover overlap - [x] Wait for #55798 to land & merge it
2019-01-10Re-enable history api on file:// protocolGuillaume Gomez-2/+1
2018-12-29Auto merge of #57006 - GuillaumeGomez:no-crate-filter, r=QuietMisdreavusbors-3/+5
Add no-crate filter option on rustdoc @onur asked me about it so here it is! r? @QuietMisdreavus
2018-12-27Simplify foreign type rendering.John Heitmann-1/+10
Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans. Reduces element count on std::iter::Iterator by 30%.
2018-12-25Remove licensesMark Rousskov-12/+0
2018-12-24Add no-crate filter option on rustdocGuillaume Gomez-3/+5
2018-12-16Fix js errorsGuillaume Gomez-2/+2
2018-12-06Show 'loading content' when loading contentGuillaume Gomez-4/+9
2018-12-06cleanupGuillaume Gomez-57/+37
2018-12-06Prevent lazy iterations over DOMGuillaume Gomez-105/+99
2018-12-06Greatly improve rustdoc rendering speed issuesGuillaume Gomez-497/+587
2018-12-06Rollup merge of #56332 - GuillaumeGomez:specifi-crate-search, r=QuietMisdreavusPietro Albini-16/+83
[rustdoc] Specific crate search Reopening of #54706. Fixes #54616. <img width="1440" alt="screenshot 2018-11-29 at 01 29 11" src="https://user-images.githubusercontent.com/3050060/49191372-979adf80-f376-11e8-963e-e4feb927c1da.png"> r? @QuietMisdreavus
2018-12-05Rollup merge of #56523 - JohnHeitmann:es6, r=GuillaumeGomezPietro Albini-2/+6
Added a bare-bones eslint config (removing jslint) This change removes the small bit of jslint config, replacing it with eslint. I've currently configured eslint to mostly only report the more serious of lints, although there are still some style nits turned on. Eslint better supports modern js, and will be a good pre-TypeScript code quality aid. Install eslint with `npm install -g eslint`. Run with `eslint html/static/*.js`, or let your IDE do it. This requires no build step. Upcoming changes will start fixing identified bugs and other lints (mostly unused and var redef issues).
2018-12-05Rollup merge of #55563 - GuillaumeGomez:doc-search-sentence, r=QuietMisdreavusPietro Albini-1/+10
Improve no result found sentence in doc search Fixes #55531. Look: <img width="1440" alt="screenshot 2018-11-01 at 02 21 56" src="https://user-images.githubusercontent.com/3050060/47827257-f6236c80-dd7c-11e8-9ea9-99c8cb4b2de5.png"> r? @QuietMisdreavus
2018-12-04Added a bare-bones eslint config (removing jslint)John Heitmann-2/+6
This change removes the small bit of jslint config, replacing it with eslint. I've currently configured eslint to mostly only report the more serious of lints, although there are still some style nits turned on. Upcoming changes will start fixing lints.
2018-11-28Add crate filteringGuillaume Gomez-16/+83
2018-11-24Add source file sidebarGuillaume Gomez-53/+13
2018-11-21Improve no result found sentence in doc searchGuillaume Gomez-1/+10
2018-11-10Small fixes on code blocks in rustdocGuillaume Gomez-4/+4
2018-11-03Rollup merge of #54162 - GuillaumeGomez:hide-default-impls-items, ↵Guillaume Gomez-0/+44
r=QuietMisdreavus Hide default impls items Follow up of #51885. Fixes #54025. cc @Mark-Simulacrum r? @QuietMisdreavus And screenshots of course: <img width="1440" alt="screen shot 2018-09-12 at 23 30 35" src="https://user-images.githubusercontent.com/3050060/45454424-1ff8d500-b6e4-11e8-9257-030322495d58.png"> <img width="1440" alt="screen shot 2018-09-12 at 23 30 42" src="https://user-images.githubusercontent.com/3050060/45454431-2424f280-b6e4-11e8-8d65-db0d85ac18f0.png">