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
Willy Aguirre
777518d844
fixes #28696 Return to the default content when .search-input is empty -Add a validation when input search is empty on top of 'startSearch()'
2015-10-01 13:30:35 -05:00
Manish Goregaokar
9256947051
rustdoc: Remove crate name from primitives, make them turn up first in search
2015-09-27 14:48:36 +05:30
Jan-Erik Rediger
7f5ec6c392
Disable browser history API on file:/ URLs
...
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-14 22:48:34 +02:00
Kang Seonghoon
e98fa0e88f
rustdoc: Tweak the main template and CSS for semantic mark-up.
...
- 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-09-09 00:49:23 +09:00
Eljay
acf9d6768e
Improve rustdoc search type filtering.
2015-08-04 16:40:23 +01:00
Andreas Tolfsen
6b64826469
librustdoc: blur page when help dialogue is present
...
Blurs the document's background when the help dialogue is present,
making the contents of the dialogue stand out more.
2015-07-20 11:36:47 +01:00
Tamir Duberstein
b3a9cd3a69
DRY
2015-07-17 14:35:09 -04:00
Steve Klabnik
c9e6d9a323
Merge branch 'fix-26673' of https://github.com/nhowell/rust into rollup_central
2015-07-16 17:55:19 -04:00
Brian Anderson
3a180d15f8
Address feedback
2015-07-13 18:38:00 -07:00
Andreas Tolfsen
8792c5c040
librustdoc: generalise handling of keyboard shortcuts
2015-07-08 13:12:18 +01:00
Nick Howell
36882a0007
rustdoc: Reset the title when pressing the back button
...
Fixes #26673
2015-07-01 23:28:54 -04:00
Mathieu David
49b73e46d6
In js from the docs, change keyboard eventlistener to be compatible with non-english keyboard layouts. Fixes #26016 Fixes #16572
2015-07-01 10:11:23 +02:00
Johannes Oertel
d234b0bb5f
rustdoc: Update document title when displaying search results
...
Fixes #26360 .
2015-06-18 18:39:31 +02:00