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
Guillaume Gomez
f44232688e
Save current highlighted item in search tab
2017-10-14 18:24:27 +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
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
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
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
Oliver Middleton
e5261c0bbf
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.
2017-08-09 13:41:55 +01:00
Guillaume Gomez
8ac4336692
Improve headers linking
2017-08-08 22:16:08 +02:00
bors
0188ec6ef8
Auto merge of #43558 - GuillaumeGomez:union-const-colors, r=QuietMisdreavus
...
Union const colors
Fixes #43523
What do you think of these colors:
<img width="1440" alt="screen shot 2017-07-30 at 15 10 57" src="https://user-images.githubusercontent.com/3050060/28753752-6b175a22-7539-11e7-978e-949f3a947d18.png ">
?
2017-08-07 18:19:07 +00:00
Guillaume Gomez
1072891b76
Improve color theme for color blind issues
2017-08-02 23:00:35 +02:00
QuietMisdreavus
5c4c2d9235
rustdoc: shrink headings in non-top-level docblocks
2017-08-01 21:09:34 -05:00
Guillaume Gomez
302e51fdc9
Add colors for constants and unions
2017-07-30 15:12:35 +02:00
QuietMisdreavus
c9bdd518eb
add [src] links to associated functions inside an impl block
2017-07-27 13:26:24 -05:00
Zack M. Davis
0fdb502710
rustdoc: fix layout of Fields section in documentation for unions
...
Previously, the union fields would all render on the same line with
hideous spacing; comparison to the analogous section for structs makes
it undoubtable that `display: block` is the true intent.
Concisely and definitively resolves #43404 and its perfidious
malignancy.
2017-07-23 11:37:53 -07:00
Guillaume Gomez
12dccbde41
Add spacing between trait functions
2017-07-09 16:47:29 +02:00
Daniel Lockyer
b4c061660f
Update to trait bounds CSS in rustdoc
...
Fixed resubmission of #40719 .
2017-05-21 04:35:26 +01:00
Raphaël Huchet
7a50784336
improve collapse toggle render (css)
2017-05-16 10:34:55 +02:00
Mark Simulacrum
f28e3cdf54
Rollup merge of #41951 - Eijebong:master, r=GuillaumeGomez
...
rustdoc: Break words in the location box of the sidebar.
This prevents long names from overflowing.
Before:

After:

2017-05-12 18:57:38 -06:00
Bastien Orivel
26e7e491b4
rustdoc: Break words in the location box of the sidebar.
...
This prevents long names from overflowing.
2017-05-12 15:42:54 +02:00
Guillaume Gomez
75b69c453b
Fix search when looking to sources
2017-05-11 22:28:13 +02:00
QuietMisdreavus
8dd4c44ef6
merge with master to pick up pulldown switch
2017-04-09 10:38:38 -05:00
QuietMisdreavus
80bff6b596
rustdoc: format where clauses like rust-lang-nursery/fmt-rfcs#38
2017-03-31 18:04:42 -05:00
Wesley Wiser
2040daee47
Make the rustdoc sidebar white on src pages
...
Fixes #40724
2017-03-28 22:45:10 -04:00
Wesley Wiser
8b9b3b6d8b
Fix sidebar not extending to the bottom of the page
...
Fixes #40459
2017-03-13 20:36:41 -04:00