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
Guillaume Gomez
4078b25589
Clean up rustdoc css
2017-03-09 19:04:13 +01:00
Wesley Wiser
2bb2a2975f
Improve the style of the sidebar in rustdoc output
...
Makes the sidebar a light grey and highlights the currently viewed item
in the sidebar more prominently.
All visual design credit goes to @johnwhelchel (#37856 )
2017-03-06 18:23:55 -05:00
Guillaume Gomez
081336e8eb
Improve associated constant rendering in rustdoc
2017-02-26 15:50:53 +01:00
Manish Goregaokar
0a1c9ae022
Improved rustdoc rendering for unstable features
2017-01-09 21:50:00 -08:00
bors
314c28b729
Auto merge of #38329 - ollie27:rustdoc_stab_em_div, r=steveklabnik
...
rustdoc: Fix invalid HTML in stability notices
`em` tags cannot contain `p` tags so use `div`s instead of `em`s as the Markdown will create `p` tags.
2016-12-27 21:10:31 +00:00
Clar Charr
17dd0e5cd9
Don't @import normalize.css.
2016-12-19 18:00:29 -05:00
Oliver Middleton
e395fd12dd
rustdoc: Fix invalid HTML in stability notices
...
`em` tags cannot contain `p` tags so just use a `div` instead.
2016-12-13 20:59:58 +00:00
Martin Pool
bee82e8837
Avoid using locally installed Source Code Pro font ( fixes #24355 ).
...
In some versions of this font the ampersands are drawn badly.
2016-12-04 13:44:19 -08:00
bors
b6b98eaa40
Auto merge of #37728 - QuietMisdreavus:rustdoc-enum-struct, r=GuillaumeGomez
...
rustdoc: fold fields for enum struct variants into a docblock
Per discussion in #37500 , this PR updates the enum rendering code to wrap variants with named struct fields in a `docblock` span that is hidden automatically upon load of the page. This gives struct variant fields a clean separation from other enum variants, giving a boost to the readability of such documentation. Preview output is available [on the issue page](https://github.com/rust-lang/rust/issues/37500#issuecomment-260069269 ), but for the sake of completeness I'll include the images here again.

When you initially load the page, there's a line under variants with struct fields letting you know you can click to expand the listing.

If you click to expand, the header and table unfold into a nicely-indented listing.
If you want to take a look in your own browser and screen size, [I've got this version hosted on my server](https://shiva.icesoldier.me/doctest/doctest/enum.OldTopicRemoval.html ).
Fixes #37500
r? @GuillaumeGomez
2016-11-12 22:36:49 -08:00
QuietMisdreavus
fff921672f
rustdoc: fold fields for enum struct variants into a docblock
2016-11-12 13:59:17 -06:00
Eduard-Mihai Burtescu
2db360eec1
Rollup merge of #37190 - QuietMisdreavus:rustdoc-where-newline, r=GuillaumeGomez
...
rustdoc: add line breaks to where clauses a la rustfmt
Much like my last PR for rustdoc (#36679 ), this adds line breaks to certain statements based on their line length. Here the focus was on where clauses.
Some examples:
- [Where clause in a trait function](https://shiva.icesoldier.me/custom-std/std/iter/trait.Iterator.html?search=#method.unzip ) (also in the trait header block at the top of the page)
- [Where clause on a bare function](https://shiva.icesoldier.me/doc-custom2/petgraph/visit/fn.depth_first_search.html )
- [Where clauses in trait impls on a struct](https://shiva.icesoldier.me/custom-std/std/collections/struct.HashMap.html ) (scroll to the bottom) These are regularly not on their own line, but will be given their own line now if their "prefix text" doesn't give them enough room to sensibly print their constraints. HashMap's trait impls provide some examples of both behaviors.
The libstd links above are the whole docs rendered with this, and the "bare function" link above is in another set that pulls some notable crates together. `petgraph` was the one that brought this request up, and that collection also includes [itertools](https://shiva.icesoldier.me/doc-custom2/itertools/trait.Itertools.html ) which provided an easy sample to test with.
r? @GuillaumeGomez
2016-11-12 10:38:36 +02:00
Guillaume Gomez
22dad4b044
Improve attributes display and allow expansion
2016-11-06 21:03:08 +01:00
Oliver Middleton
0b2746c8db
rustdoc: Improve playground run buttons
...
The main change is to stop using javascript to generate the URLs and use
rustdoc instead.
This also adds run buttons to the error index examples.
2016-10-15 18:32:03 +01:00
QuietMisdreavus
07b27bb34c
rustdoc: break where clauses onto their own line if they don't have enough room
2016-10-15 10:29:47 -05:00
est31
87cbfb455f
Change color and make ? bold
2016-10-12 22:45:41 +02:00
est31
6a89b8fd0a
rustdoc: color the question mark operator
...
The idea was proposed by eddyb in: https://github.com/rust-lang/rust/issues/31436#issuecomment-247426582
2016-10-12 05:39:57 +02:00
Guillaume Gomez
4b402dbe69
Remove underline when run button hovered
2016-10-06 18:10:00 +02:00
Jonathan Turner
d6a7a4fb57
Rollup merge of #36676 - bluss:rustdoc-where-css, r=steveklabnik
...
rustdoc css: Put `where` in trait listings on a new line
This is about the gray area at the top of a trait's documentation page,
that lists all methods and their signatures. A big trait page like
Iterator is very crowded without this tweak.
2016-09-26 17:29:48 -07:00
Ulrik Sverdrup
e82d13ea4b
rustdoc css: Put where in trait listings on a new line
...
This is about the gray area at the top of a trait's documentation page,
that lists all methods and their signatures. A big trait page like
Iterator is very crowded without this tweak.
2016-09-23 20:31:14 +02:00
Eitan Adler
4f11a39e26
invisible isn't a tag
2016-09-17 23:30:42 -07:00
Eitan Adler
101d987d29
add missing semi-colon
2016-09-17 23:29:00 -07:00
Eitan Adler
f7811c1ca6
Fix order of @import
...
In CSS 2.1, any @import rules must precede all other rules (except the
@charset rule, if present).
2016-09-17 22:56:22 -07:00
bors
6ffdda1ba1
Auto merge of #36293 - liigo:docblock-short, r=steveklabnik
...
rustdoc: don't collapse `docblock-short`

2016-09-14 15:39:23 -07:00
Liigo
26d5f99ec0
rustdoc: more docblock-short styles
2016-09-09 12:28:53 +08:00
Liigo
93cdce4cf3
rustdoc: don't collapse docblock-short
2016-09-09 12:28:37 +08:00