about summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2017-05-18Make documentation works again by removing two unnecessary ES6 pieces.pravic-3/+3
2017-05-16improve collapse toggle render (css)Raphaƫl Huchet-0/+5
2017-05-13Rollup merge of #41950 - GuillaumeGomez:rustdoc-links, r=frewsxcvMark Simulacrum-4/+8
Fix anchor invalid redirection to search Fixes #41933. r? @rust-lang/docs
2017-05-12Rollup merge of #41951 - Eijebong:master, r=GuillaumeGomezMark Simulacrum-0/+1
rustdoc: Break words in the location box of the sidebar. This prevents long names from overflowing. Before: ![before](https://img.bananium.fr/eijebong/afcfe18b-393e-4d3b-bc11-fe3def6659b9.png) After: ![after](https://img.bananium.fr/eijebong/9483466b-3b6c-4509-ab0f-fd0c6572ef27.png)
2017-05-12Fix anchor invalid redirection to searchGuillaume Gomez-4/+8
2017-05-12rustdoc: Break words in the location box of the sidebar.Bastien Orivel-0/+1
This prevents long names from overflowing.
2017-05-11Fix search when looking to sourcesGuillaume Gomez-0/+3
2017-05-02Remove jquery dependencyGuillaume Gomez-242/+456
2017-04-09merge with master to pick up pulldown switchQuietMisdreavus-14/+17
2017-04-06rustdoc: collapse docblock before showing labelAndy Russell-4/+11
2017-03-31rustdoc: format where clauses like rust-lang-nursery/fmt-rfcs#38QuietMisdreavus-12/+1
2017-03-28Make the rustdoc sidebar white on `src` pagesWesley Wiser-3/+7
Fixes #40724
2017-03-21Remove duplicate style classesCldfire-8/+0
2017-03-13Fix sidebar not extending to the bottom of the pageWesley Wiser-1/+1
Fixes #40459
2017-03-09Clean up rustdoc cssGuillaume Gomez-58/+89
2017-03-06Improve the style of the sidebar in rustdoc outputWesley Wiser-2/+20
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-02-26Improve associated constant rendering in rustdocGuillaume Gomez-5/+5
2017-01-09Improved rustdoc rendering for unstable featuresManish Goregaokar-0/+8
2016-12-27Auto merge of #38329 - ollie27:rustdoc_stab_em_div, r=steveklabnikbors-10/+6
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-24Rollup merge of #38480 - clarcharr:import_css, r=steveklabnikSteve Klabnik-2/+0
Don't @import normalize.css. This lets the browser load both files in parallel instead of waiting for `rustdoc.css` to load first.
2016-12-22Auto merge of #38330 - ollie27:rustdoc_short_summaries, r=steveklabnikbors-16/+5
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. [before](https://doc.rust-lang.org/nightly/std/index.html?search=ord) [after](https://ollie27.github.io/rust_doc_test/std/index.html?search=ord)
2016-12-19Don't @import normalize.css.Clar Charr-2/+0
2016-12-13rustdoc: Fix invalid HTML in stability noticesOliver Middleton-10/+6
`em` tags cannot contain `p` tags so just use a `div` instead.
2016-12-12rustdoc: Fix short summaries in search resultsOliver Middleton-16/+5
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-04Avoid using locally installed Source Code Pro font (fixes #24355).Martin Pool-2/+4
In some versions of this font the ampersands are drawn badly.
2016-11-30rustdoc: link to cross-crate sources directly.Eduard-Mihai Burtescu-9/+0
2016-11-12Auto merge of #37728 - QuietMisdreavus:rustdoc-enum-struct, r=GuillaumeGomezbors-0/+24
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. ![rustdoc struct enum variant 4 part 1](https://cloud.githubusercontent.com/assets/5217170/20231925/96160b7e-a82a-11e6-945b-bbba95c5e4bc.PNG) 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. ![rustdoc struct enum variant 4 part 2](https://cloud.githubusercontent.com/assets/3050060/20232067/1dc63266-a866-11e6-9555-8fb1c8afdcec.png) 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-12rustdoc: fold fields for enum struct variants into a docblockQuietMisdreavus-0/+24
2016-11-12Rollup merge of #37190 - QuietMisdreavus:rustdoc-where-newline, r=GuillaumeGomezEduard-Mihai Burtescu-2/+10
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-06Set attributes hidden by defaultGuillaume Gomez-8/+24
2016-11-06Improve attributes display and allow expansionGuillaume Gomez-365/+375
2016-10-15rustdoc: Improve playground run buttonsOliver Middleton-74/+0
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-15rustdoc: break where clauses onto their own line if they don't have enough roomQuietMisdreavus-2/+10
2016-10-12Change color and make ? boldest31-1/+2
2016-10-12rustdoc: color the question mark operatorest31-0/+3
The idea was proposed by eddyb in: https://github.com/rust-lang/rust/issues/31436#issuecomment-247426582
2016-10-08Auto merge of #36637 - GuillaumeGomez:fix_run_button, r=blussbors-0/+30
Fixes run button appearing when it shouldn't Fixes #36621. r? @steveklabnik
2016-10-06Remove underline when run button hoveredGuillaume Gomez-0/+1
2016-10-05Fixes run button appearing when it shouldn'tGuillaume Gomez-0/+30
2016-09-26Rollup merge of #36676 - bluss:rustdoc-where-css, r=steveklabnikJonathan Turner-0/+5
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-23rustdoc css: Put `where` in trait listings on a new lineUlrik Sverdrup-0/+5
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-17invisible isn't a tagEitan Adler-1/+1
2016-09-17border-color > borderEitan Adler-1/+1
2016-09-17add missing semi-colonEitan Adler-1/+2
2016-09-17Fix order of @importEitan Adler-2/+2
In CSS 2.1, any @import rules must precede all other rules (except the @charset rule, if present).
2016-09-14Auto merge of #36293 - liigo:docblock-short, r=steveklabnikbors-9/+9
rustdoc: don't collapse `docblock-short` ![docblock-short](https://cloud.githubusercontent.com/assets/346530/18267298/137d2542-7451-11e6-9c8e-dd4e1f1fea29.png)
2016-09-09rustdoc: more docblock-short stylesLiigo-5/+5
2016-09-09rustdoc: don't collapse `docblock-short`Liigo-4/+4
2016-09-08Set run button transparent instead of invisibleGuillaume Gomez-15/+5
2016-09-03Support unions in rustdocVadim Petrochenkov-1/+2
2016-08-19Auto merge of #35655 - ollie27:rustdoc_search_static_prim, r=steveklabnikbors-6/+7
rustdoc: Fix a couple of issues with the search results * Fix links to static items in the search results. * 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`.