Guillaume Gomez
72338b8ccb
Allow to go back to previous search
2017-11-10 19:40:46 +01:00
Guillaume Gomez
5e116985eb
Add "-" shortcut
2017-11-07 22:44:18 +01:00
Guillaume Gomez
acd5e8cd4e
Fix navbar click while in a search
2017-11-06 23:49:47 +01:00
Guillaume Gomez
ee7e372bbf
Remove duplicated results in the search
2017-11-01 13:41:43 +01:00
Guillaume Gomez
e8db5adcce
fix function not appearing in first tab when appearing in another one. Thanks to @Seeker14491 for this one!
2017-11-01 13:41:43 +01:00
Guillaume Gomez
f6a546e14d
Be more flexible when looking for something by using levenshtein method
2017-11-01 13:41:43 +01:00
Guillaume Gomez
6f21008aba
Better check for returned value
2017-11-01 13:41:43 +01:00
Guillaume Gomez
56dbb3e32d
Keep displaying good information when query is made
2017-11-01 13:41:43 +01:00
bors
a651106ad0
Auto merge of #45288 - GuillaumeGomez:tab-key-binding, r=QuietMisdreavus
...
Save the highlighted item when switching tab
To be merged after #45281 .
r? @rust-lang/docs
2017-10-19 23:55:20 +00:00
kennytm
4913b92ff5
Rollup merge of #45281 - GuillaumeGomez:tab-selection, r=QuietMisdreavus
...
Save selected search tab
Fixes #45278 .
r? @rust-lang/docs
2017-10-19 01:59:50 +08:00
Guillaume Gomez
c6ce067216
Hide help when search bar is focused
2017-10-14 18:46:29 +02:00
Guillaume Gomez
f44232688e
Save current highlighted item in search tab
2017-10-14 18:24:27 +02:00
Guillaume Gomez
45bb03f60c
Save selected search tab
2017-10-14 18:15:20 +02:00
Guillaume Gomez
3a65d12df7
Add tabs for search for better information access
...
Make tabs work
2017-10-09 23:26:10 +02:00
Guillaume Gomez
79f888da68
Add arrow and improve display
2017-09-11 22:31:37 +02:00
pravic
cb4a2d5078
Fix ES5 regression with shorthand names.
...
Reverts 1b6c9605e4
.
2017-08-17 12:41:57 +03:00
Zack M. Davis
1b6c9605e4
use field init shorthand EVERYWHERE
...
Like #43008 (f668999
), but _much more aggressive_.
2017-08-15 15:29:17 -07:00
QuietMisdreavus
1f9d032b38
rustdoc: put auto-hidden docblock labels in line with the toggle
2017-08-14 10:54:24 -05:00
Zack M. Davis
749dcbaa88
rustdoc: add unions to whitelist of sidebar types
...
This resolves #43405 .
2017-07-23 17:18:58 -07:00
Guillaume Gomez
7327cf7be5
Toggle wrappers are now generated correctly
2017-06-29 22:10:24 +02:00
Clar Charr
dd23fda9bd
Make rustdoc.js use license comments.
2017-06-07 22:44:53 -04:00
Mark Simulacrum
5ded76ca21
Rollup merge of #42096 - ollie27:rustdoc_js_impls, r=GuillaumeGomez
...
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-19 14:16:25 -06:00
Oliver Middleton
e48086c04f
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.
2017-05-19 02:59:04 +01:00
pravic
1eb6639508
Make documentation works again by removing two unnecessary ES6 pieces.
2017-05-18 10:35:18 +03:00
Guillaume Gomez
b09a19b7c7
Fix anchor invalid redirection to search
2017-05-12 23:09:25 +02:00
Guillaume Gomez
6f4c12e210
Remove jquery dependency
2017-05-02 13:54:42 +02:00
Andy Russell
8a1d2a3a5a
rustdoc: collapse docblock before showing label
2017-04-06 21:56:47 -04:00
Guillaume Gomez
081336e8eb
Improve associated constant rendering in rustdoc
2017-02-26 15:50:53 +01:00
Oliver Middleton
4f15e1183c
rustdoc: Fix short summaries in search results
...
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-12-12 18:39:36 +00:00
Eduard-Mihai Burtescu
900191891f
rustdoc: link to cross-crate sources directly.
2016-11-30 04:48:56 +02:00
QuietMisdreavus
fff921672f
rustdoc: fold fields for enum struct variants into a docblock
2016-11-12 13:59:17 -06:00
Guillaume Gomez
520d5f4cb9
Set attributes hidden by default
2016-11-06 22:56:35 +01:00
Guillaume Gomez
22dad4b044
Improve attributes display and allow expansion
2016-11-06 21:03:08 +01:00
Vadim Petrochenkov
6792bd99fe
Support unions in rustdoc
2016-09-03 13:39:34 +03:00
Oliver Middleton
616b101e3f
rustdoc: Don't include the path for primitive methods in the search results
...
Displaying `std::u32::max_value` is misleading so just display
`u32::max_value`.
2016-08-13 15:57:44 +01:00
Oliver Middleton
5940150841
rustdoc: Fix links to static items in the search results
2016-08-13 15:48:38 +01:00
Oliver Middleton
b8bddb00bd
rustdoc: Add more types to the sidebar
...
They're displayed in the same order as they are on modules pages.
2016-06-19 23:19:57 +01:00
Alex Ozdemir
57ab0edaf0
Fixed shortcut handling. Reverted to [Shift]+[+=]
...
Realized browsers use [Ctrl]+[+=] for zoom, so using [Shift]+[+=] for
collapse/expand was not necessarily a conflict.
Also a bugfix.
2016-05-22 18:17:49 -07:00
Alex Ozdemir
01dc9f0be4
Changed toggle all sections key to T
...
Allows both `T` and `t`.
It had been [Shift]+[+] before.
2016-05-22 12:47:53 -07:00
Alex Ozdemir
ab09fbca23
Added a rustdoc
shortcut for collapse/expand all
...
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-05-20 19:43:47 -07:00
mitaa
bb9ec82563
Improve accessibility of rustdoc pages
2016-04-25 07:50:16 +02:00
Novotnik, Petr
88ab9382ae
Avoid page reload upon hitting "S" when browing in local mode
2016-03-25 21:35:10 +01:00
York Xiang
2910c00206
Fix usability problem when browse document locally
2016-03-18 00:49:15 +09:00
bors
37c6f2881c
Auto merge of #31715 - mitaa:rdoc-index-crate, r=alexcrichton
...
This allows to search for crates in documentation and simplifies the json serialization of the search-index.
fixes #14077
2016-02-22 23:13:08 +00:00
mitaa
810a514029
Add crates to search-index
2016-02-16 20:00:57 +01:00
Brandon W Maister
17691af38d
doc pages: add the ability to search unknown types
...
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.
2016-02-16 04:10:30 +05:30
Ivan Kozik
3b2a8e1259
librustdoc: don't override ctrl-s and other browser shortcuts
2015-11-05 10:39:02 +00:00
Simonas Kazlauskas
f38bc2c457
Fix librustdoc search events
...
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-02 17:02:02 +03:00
Simonas Kazlauskas
98841d4e93
Fix misnamed variable in rustdoc
2015-10-02 16:54:58 +03:00
bors
5180a7ccc5
Auto merge of #28795 - marti1125:28696, r=alexcrichton
...
-Add a validation when input search is empty on top of 'startSearch()'
2015-10-02 11:04:13 +00:00