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
kennytm
07df45d363
Rollup merge of #45450 - GuillaumeGomez:overlap-link, r=QuietMisdreavus
...
Fix title heading overlap in rust doc
Fixes #45158 .
To be noted that this margin only appears when a title is the first element.
<img width="1440" alt="screen shot 2017-10-22 at 16 08 44" src="https://user-images.githubusercontent.com/3050060/31862746-6411070e-b743-11e7-9a75-4159e1f7f1d6.png ">
r? @rust-lang/docs
2017-11-01 13:32:08 +08:00
Guillaume Gomez
8fb1250aba
Improve sidebar rendering and add methods list
2017-10-27 23:09:18 +02:00
kennytm
fc48893845
Rollup merge of #45212 - GuillaumeGomez:sidebar-fixed, r=QuietMisdreavus
...
Limit the sidebar height
The sidebar is now fixed, which means its scrolling is independent of the main page now.
r? @rust-lang/docs
2017-10-26 03:02:49 +08:00
Guillaume Gomez
deef11dd26
Show src button and function version on mobile version
2017-10-24 22:34:59 +02:00
Guillaume Gomez
9ce41f2544
Fix the sidebar height
2017-10-24 21:16:43 +02:00
Guillaume Gomez
237ad82f3c
Remove useless top margin on first heading
2017-10-22 16:11:07 +02:00
Guillaume Gomez
becd45be80
Fix title heading overlap in rust doc
2017-10-22 16:08:31 +02: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
bors
0be6863a15
Auto merge of #45290 - GuillaumeGomez:fix-help, r=QuietMisdreavus
...
Hide help when search bar is focused
Fixes #45286
r? @rust-lang/docs
2017-10-17 12:18:25 +00: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
c729e4dca7
Remove terribly useless and problematic margin when searching on mobile
2017-10-14 15:55:33 +02:00
kennytm
fb98e3e434
Rollup merge of #45245 - stjepang:more-padding-between-impls, r=QuietMisdreavus
...
Rustdoc: Increase padding between consecutive impls
Currently, [implementors](https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html#implementors ) list is a bit too condensed. More spacing makes the list easier to read.
Check out [this comment](https://github.com/rust-lang/rust/issues/41879#issuecomment-333121118 ) to see what's the effect of this change.
Closes #41879 .
cc @QuietMisdreavus
2017-10-13 23:38:04 +08:00
kennytm
f43c54e1e3
Rollup merge of #45240 - GuillaumeGomez:mobile-sidebar-improvements, r=QuietMisdreavus
...
Mobile sidebar improvements
Very small changes, I just made the width of the sidebar of 100% and centered vertically both items a bit more:
<img width="1440" alt="screen shot 2017-10-12 at 20 00 47" src="https://user-images.githubusercontent.com/3050060/31511496-302bb474-af88-11e7-8dab-2c88799eafcc.png ">
r? @rust-lang/docs
2017-10-13 23:38:03 +08:00
bors
d21c023964
Auto merge of #45055 - GuillaumeGomez:search-tabs, r=QuietMisdreavus
...
Add tabs for search for better information access
A few screenshots:
<img width="1440" alt="screen shot 2017-10-06 at 00 54 51" src="https://user-images.githubusercontent.com/3050060/31256148-032c1a06-aa31-11e7-8e4c-fec59786b8e6.png ">
<img width="1440" alt="screen shot 2017-10-06 at 00 54 58" src="https://user-images.githubusercontent.com/3050060/31256150-03312cb2-aa31-11e7-86f7-8c9f0d8d6d4f.png ">
<img width="1440" alt="screen shot 2017-10-06 at 00 55 00" src="https://user-images.githubusercontent.com/3050060/31256149-0330d456-aa31-11e7-8f89-3b3c824e30b4.png ">
r? @rust-lang/docs
cc @killercup @QuietMisdreavus
2017-10-13 11:34:11 +00:00
Stjepan Glavina
16ec7b949f
Increase padding between consecutive impls
2017-10-12 22:57:51 +02:00
Guillaume Gomez
9da9c3be62
Small improvement for the sidebar on mobile devices
2017-10-12 20:02:29 +02:00
Guillaume Gomez
3a65d12df7
Add tabs for search for better information access
...
Make tabs work
2017-10-09 23:26:10 +02:00
QuietMisdreavus
fcee950660
let rustdoc print the crate version into docs
2017-10-09 09:56:17 -05:00
Vitaly _Vi Shukela
67c9af590d
rustdoc: Style of [src] link for trait implementors
...
A change suggested by @GuillaumeGomez and @QuietMisdreavus.
Also slight reindenting of the appropriate CSS section.
2017-10-01 16:20:56 +03:00
Guillaume Gomez
4e377081ca
Rollup merge of #44789 - GuillaumeGomez:fix-rustdoc-display, r=QuietMisdreavus
...
Fix warning position in rustdoc code blocks
Before:
<img width="1440" alt="screen shot 2017-09-23 at 14 07 08" src="https://user-images.githubusercontent.com/3050060/30773382-b9649288-a06f-11e7-94ec-faa3c3ed999b.png ">
After:
<img width="1440" alt="screen shot 2017-09-23 at 14 58 31" src="https://user-images.githubusercontent.com/3050060/30773384-bdfc9f3e-a06f-11e7-9030-9fb8a5308668.png ">
r? @QuietMisdreavus
2017-09-24 14:01:51 +02:00
Guillaume Gomez
e30abfbfe7
Fix warning position in rustdoc code blocks
2017-09-23 14:06:35 +02:00
Alex Crichton
929215db7c
Rollup merge of #44671 - GuillaumeGomez:run-button, r=steveklabnik
...
Fix run button
r? @QuietMisdreavus
Before:

After:

Quite urgent.
2017-09-18 11:04:28 -05:00
Guillaume Gomez
90ce24ab69
Fix run button
2017-09-18 14:44:28 +02:00
Guillaume Gomez
e47279f512
Add more links and put the link character to the left
2017-09-17 22:11:37 +02:00
Guillaume Gomez
79f888da68
Add arrow and improve display
2017-09-11 22:31:37 +02:00
Guillaume Gomez
a095ee48d5
Add class for codeblocks
2017-09-11 22:31:02 +02:00
Guillaume Gomez
bde0071d1d
Fix invalid display of enum sub-fields docs
2017-08-30 23:16:25 +02:00
Guillaume Gomez
f50bf8636e
Fix invalid linker position
2017-08-28 22:40:09 +02:00
Corey Farwell
b4dcdee0fd
Rollup merge of #43979 - Jouan:Add-links-for-impls, r=GuillaumeGomez
...
Add links for impls
Implements a solution for issue #23552
r? @QuietMisdreavus
2017-08-26 06:46:33 -07:00
Corey Farwell
4902e6714f
Rollup merge of #43977 - GuillaumeGomez:remove-outline, r=QuietMisdreavus
...
Remove outline when details have focus
r? @rust-lang/docs
(the green outline annoyed me a bit)
2017-08-23 08:44:24 -04:00
Jouan Amate
4729f22f8b
Fixed changes to .in-band CSS
...
:target will specifically override .in-band background
2017-08-22 09:24:18 -07:00
Guillaume Gomez
b8f4e74cbc
Remove outline when details have focus
2017-08-18 21:19:58 +02:00
Jouan Amate
c8d58a306e
Add links for impls
...
Implements a solution for issue #23552
2017-08-18 10:07:12 -07: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
Corey Farwell
a3a59a1711
Rollup merge of #43862 - QuietMisdreavus:get-in-line-autohide, r=GuillaumeGomez
...
rustdoc: put auto-hidden docblock labels in line with the toggle
before:

after:

(images taken from `std::heap::AllocErr`)
2017-08-14 20:28:47 -04:00
QuietMisdreavus
1f9d032b38
rustdoc: put auto-hidden docblock labels in line with the toggle
2017-08-14 10:54:24 -05:00
bors
0ed03e5490
Auto merge of #43348 - kennytm:fix-24658-doc-every-platform, r=alexcrichton
...
Expose all OS-specific modules in libstd doc.
1. Uses the special `--cfg dox` configuration passed by rustbuild when running `rustdoc`. Changes the `#[cfg(platform)]` into `#[cfg(any(dox, platform))]` so that platform-specific API are visible to rustdoc.
2. Since platform-specific implementations often won't compile correctly on other platforms, `rustdoc` is changed to apply `everybody_loops` to the functions during documentation and doc-test harness.
3. Since platform-specific code are documented on all platforms now, it could confuse users who found a useful API but is non-portable. Also, their examples will be doc-tested, so must be excluded when not testing on the native platform. An undocumented attribute `#[doc(cfg(...))]` is introduced to serve the above purposed.
Fixes #24658 (Does _not_ fully implement #1998 ).
2017-08-13 03:00:20 +00:00
Guillaume Gomez
742bba0ebf
Rollup merge of #43795 - GuillaumeGomez:improve-variants-doc-style, r=QuietMisdreavus
...
Improve enum variants display
r? @rust-lang/docs
Before:
<img width="1440" alt="screen shot 2017-08-11 at 00 22 54" src="https://user-images.githubusercontent.com/3050060/29194776-728ce0e2-7e2b-11e7-8299-8300cc0c168b.png ">
After:
<img width="1440" alt="screen shot 2017-08-11 at 00 22 57" src="https://user-images.githubusercontent.com/3050060/29194783-78867558-7e2b-11e7-9226-1327fd20163a.png ">
(The doc of the variant is more aligned with the "[-]" now).
2017-08-11 10:20:33 +02:00
Guillaume Gomez
6fac8dc141
Rollup merge of #43760 - ollie27:rustdoc_search_css, r=GuillaumeGomez
...
rustdoc: Fix broken CSS in search results
The layout is currently broken for struct/union fields and enum variants
in the search results when searching from a struct, union or enum page.
Some examples:
https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html?search=start
https://doc.rust-lang.org/nightly/std/option/enum.Option.html?search=some
#34477 was an incomplete fix
2017-08-11 10:20:27 +02:00
Guillaume Gomez
b6172008bf
Improve enum variants display
2017-08-11 00:34:17 +02:00
kennytm
a2b888675a
Implemented #[doc(cfg(...))].
...
This attribute has two effects:
1. Items with this attribute and their children will have the "This is
supported on **** only" message attached in the documentation.
2. The items' doc tests will be skipped if the configuration does not
match.
2017-08-10 13:43:59 +08:00