about summary refs log tree commit diff
path: root/src/librustdoc/html/static/main.js
AgeCommit message (Collapse)AuthorLines
2019-11-03Auto merge of #65780 - GuillaumeGomez:move-help-popup-generation-code, ↵bors-2/+49
r=Mark-Simulacrum Move help popup generation code The first commit is just a small cleanup. The idea behind this PR is to reduce a bit more the generated HTML files by moving the duplicated code into one place instead. r? @kinnison
2019-10-29Rollup merge of #65741 - GuillaumeGomez:help-popup, r=Dylan-DPCTyler Mandry-3/+7
Prevent help popup to disappear when clicking on it Fixes #65736. r? @kinnison
2019-10-27reduce size of generated HTML files by moving the popup helper code to the JSGuillaume Gomez-0/+47
2019-10-27Cleanup search element getterGuillaume Gomez-2/+2
2019-10-25Improve help popup detectionGuillaume Gomez-3/+4
2019-10-24Prevent help popup to disappear when clicking on itGuillaume Gomez-2/+5
2019-10-24Fix default "disable-shortcuts" feature valueGuillaume Gomez-1/+1
2019-10-21Add option to disable keyboard shortcuts in docsGuillaume Gomez-1/+2
2019-09-09Rollup merge of #64312 - GuillaumeGomez:rustdoc-better-esc-handling, ↵Mazdak Farrokhzad-18/+29
r=Mark-Simulacrum Unify escape usage Fixes #63443. I chose to keep the search text when pressing escape so when we focus on the search bar, we got the results again without needing to load them again. I also unified a bit a few things (maybe I should have done it in another commit, sorry...). r? @Mark-Simulacrum
2019-09-09Unify escape usageGuillaume Gomez-18/+29
2019-09-06Rollup merge of #64094 - kawa-yoiko:rustdoc-search, r=GuillaumeGomezMazdak Farrokhzad-10/+6
Improve searching in rustdoc and add tests 👋 I have made searching in rustdoc more intuitive, added a couple more tests and made a little shell script to aid testing. Closes #63005. It took me quite a while to figure out how to run the tests for rustdoc (instead of running tests for other crates with rustdoc); the only pointer I found was [hidden in the rustc book](https://rust-lang.github.io/rustc-guide/rustdoc.html#cheat-sheet). Maybe this could be better documented? I shall be delighted to help if it is desirable.
2019-09-05Rollup merge of #63774 - chocol4te:fix_63707, r=GuillaumeGomezMazdak Farrokhzad-1/+1
Fix `window.hashchange is not a function` Closes #63707.
2019-09-04Improve searching in rustdoc and add testsShiqing-10/+6
2019-08-29Rollup merge of #62734 - GuillaumeGomez:hide-default-methods, r=Mark-SimulacrumMazdak Farrokhzad-1/+1
Hide trait default methods Fixes #62499. However, the question remains: do we want to extend it to this point or not? r? @QuietMisdreavus
2019-08-28Auto merge of #62941 - GuillaumeGomez:save-crate-filter, r=Mark-Simulacrumbors-2/+18
Save crate filtering on rustdoc Fixes #62929. I added a hashmap and a hash encoding for the current crate list in case you have multiple crates handling on a same website (who talked about docs.rs?!). Like that, for each context, you have the filter crate selected. r? @QuietMisdreavus
2019-08-28Save crate filtering on rustdocGuillaume Gomez-2/+18
2019-08-21Fix confusion in theme picker functionsGuillaume Gomez-6/+6
2019-08-21Fix `window.hashchange is not a function`Ferdia McKeogh-1/+1
2019-07-16code formattingGuillaume Gomez-1/+1
2019-05-21Fix lines highlighting in rustdoc source viewGuillaume Gomez-3/+14
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