summary refs log tree commit diff
path: root/src/librustdoc/html/static/main.js
AgeCommit message (Collapse)AuthorLines
2017-09-11Add arrow and improve displayGuillaume Gomez-0/+18
2017-08-17Fix ES5 regression with shorthand names.pravic-4/+4
Reverts 1b6c9605e4.
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-4/+4
Like #43008 (f668999), but _much more aggressive_.
2017-08-14rustdoc: put auto-hidden docblock labels in line with the toggleQuietMisdreavus-1/+1
2017-07-23rustdoc: add unions to whitelist of sidebar typesZack M. Davis-0/+1
This resolves #43405.
2017-06-29Toggle wrappers are now generated correctlyGuillaume Gomez-21/+28
2017-06-07Make rustdoc.js use license comments.Clar Charr-9/+11
2017-05-19Rollup merge of #42096 - ollie27:rustdoc_js_impls, r=GuillaumeGomezMark Simulacrum-3/+3
rustdoc: Fix implementors list javascript * Use a different loop variable, `i` was already taken. This caused missing items in the implementors list. * Use `.getAttribute('href')` rather than `.href` to get the relative URL which is what it needs to actually fix the links. More fallout from #41307. r? @GuillaumeGomez
2017-05-19rustdoc: Fix implementors list javascriptOliver Middleton-3/+3
* Use a different loop variable, `i` was already taken. This caused missing items in the implementors list. * Use `.getAttribute('href')` rather than `.href` to get the relative URL which is what it needs to actually fix the links.
2017-05-18Make documentation works again by removing two unnecessary ES6 pieces.pravic-3/+3
2017-05-12Fix anchor invalid redirection to searchGuillaume Gomez-4/+8
2017-05-02Remove jquery dependencyGuillaume Gomez-233/+456
2017-04-06rustdoc: collapse docblock before showing labelAndy Russell-4/+11
2017-02-26Improve associated constant rendering in rustdocGuillaume Gomez-1/+1
2016-12-12rustdoc: Fix short summaries in search resultsOliver Middleton-16/+5
They should be run through a Markdown renderer in rustdoc to remove links. This also fixes the mouse over text for the Crates list on the sidebar.
2016-11-30rustdoc: link to cross-crate sources directly.Eduard-Mihai Burtescu-9/+0
2016-11-12rustdoc: fold fields for enum struct variants into a docblockQuietMisdreavus-0/+16
2016-11-06Set attributes hidden by defaultGuillaume Gomez-8/+24
2016-11-06Improve attributes display and allow expansionGuillaume Gomez-0/+2
2016-09-03Support unions in rustdocVadim Petrochenkov-1/+2
2016-08-13rustdoc: Don't include the path for primitive methods in the search resultsOliver Middleton-2/+7
Displaying `std::u32::max_value` is misleading so just display `u32::max_value`.
2016-08-13rustdoc: Fix links to static items in the search resultsOliver Middleton-4/+0
2016-06-19rustdoc: Add more types to the sidebarOliver Middleton-1/+5
They're displayed in the same order as they are on modules pages.
2016-05-22Fixed shortcut handling. Reverted to [Shift]+[+=]Alex Ozdemir-2/+2
Realized browsers use [Ctrl]+[+=] for zoom, so using [Shift]+[+=] for collapse/expand was not necessarily a conflict. Also a bugfix.
2016-05-22Changed toggle all sections key to `T`Alex Ozdemir-1/+2
Allows both `T` and `t`. It had been [Shift]+[+] before.
2016-05-20Added a `rustdoc` shortcut for collapse/expand allAlex Ozdemir-2/+8
Now when the user presses the "+" key all sections will collapse/expand. Also added a note to the help screen which describes this behavior.
2016-04-25Improve accessibility of rustdoc pagesmitaa-1/+1
2016-03-25Avoid page reload upon hitting "S" when browing in local modeNovotnik, Petr-2/+0
2016-03-18Fix usability problem when browse document locallyYork Xiang-2/+6
2016-02-22Auto merge of #31715 - mitaa:rdoc-index-crate, r=alexcrichtonbors-0/+13
This allows to search for crates in documentation and simplifies the json serialization of the search-index. fixes #14077
2016-02-16Add crates to search-indexmitaa-0/+13
2016-02-16doc pages: add the ability to search unknown typesBrandon W Maister-3/+3
This enables `*` in all type positions in doc searches, which I often want in order to find functions that create or convert specific types (e.g. `* -> vec`) but I don't actually know what kinds of input they expect. I actually started working on this because of #31598, but I've wanted it several times when exploring new crates.
2015-11-05librustdoc: don't override ctrl-s and other browser shortcutsIvan Kozik-0/+4
2015-10-02Fix librustdoc search eventsSimonas Kazlauskas-11/+17
Previously only keyup event was looked at, which meant that pasting, cutting and otherwise changing the input without typing would not catch any updates to the search query.
2015-10-02Fix misnamed variable in rustdocSimonas Kazlauskas-1/+1
2015-10-02Auto merge of #28795 - marti1125:28696, r=alexcrichtonbors-0/+9
-Add a validation when input search is empty on top of 'startSearch()'
2015-10-01fixes #28696 Return to the default content when .search-input is empty -Add ↵Willy Aguirre-0/+9
a validation when input search is empty on top of 'startSearch()'
2015-09-27rustdoc: Remove crate name from primitives, make them turn up first in searchManish Goregaokar-0/+7
2015-09-14Disable browser history API on file:/ URLsJan-Erik Rediger-1/+2
history.pushState is defined, but not working whenever document.origin is "null" (literally that string, not just the null object). This is due to some security considerations and is unlikely to be ever working. For now just disable the usage of the history API when the documentation is accessed through a file:/ URL. See https://code.google.com/p/chromium/issues/detail?id=301210 for a Chrome-specific issue on the history API on file:/ URLs Closes #25953
2015-09-09rustdoc: Tweak the main template and CSS for semantic mark-up.Kang Seonghoon-6/+10
- section.sidebar -> nav.sidebar, also added an unordered list. - div#help -> aside#help, also added a hidden heading. - the current crate is now emphasized in the sidebar. Fixes #16310.
2015-08-04Improve rustdoc search type filtering.Eljay-7/+27
2015-07-20librustdoc: blur page when help dialogue is presentAndreas Tolfsen-2/+5
Blurs the document's background when the help dialogue is present, making the contents of the dialogue stand out more.
2015-07-17DRYTamir Duberstein-2/+2
2015-07-16Merge branch 'fix-26673' of https://github.com/nhowell/rust into rollup_centralSteve Klabnik-0/+6
2015-07-13Address feedbackBrian Anderson-0/+5
2015-07-08librustdoc: generalise handling of keyboard shortcutsAndreas Tolfsen-44/+48
2015-07-01rustdoc: Reset the title when pressing the back buttonNick Howell-0/+6
Fixes #26673
2015-07-01In js from the docs, change keyboard eventlistener to be compatible with ↵Mathieu David-6/+33
non-english keyboard layouts. Fixes #26016 Fixes #16572
2015-06-18rustdoc: Update document title when displaying search resultsJohannes Oertel-0/+3
Fixes #26360.
2015-05-22Rustdoc Search: Increase Relevance of PrimitivesPascal Hertleif-0/+7