summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
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`.
2016-08-17Review changesNick Cameron-2/+9
2016-08-13rustdoc: Don't include the path for primitive methods in the search resultsOliver Middleton-2/+7
Displaying `std::u32::max_value` is misleading so just display `u32::max_value`.
2016-08-13rustdoc: Fix links to static items in the search resultsOliver Middleton-4/+0
2016-07-19[CSS] Fix unwanted top margin for toggle wrapperggomez-1/+4
2016-07-06Remove invalid CSS rule for doc titlesggomez-8/+0
2016-06-25rustdoc: Fix search result layout for enum variants and struct fieldsOliver Middleton-1/+1
2016-06-19rustdoc: Add more types to the sidebarOliver Middleton-1/+5
They're displayed in the same order as they are on modules pages.
2016-06-12Fix invalid inliningGuillaume Gomez-0/+4
2016-06-07Rollup merge of #34138 - hoodie:bug/bool_colors, r=steveklabnikSteve Klabnik-1/+1
Bug/bool colors This is actually #33661 @steveklabnik, sorry about this, github ate my homework
2016-06-04rustdoc: Fix a few missing colors in the CSSOliver Middleton-5/+6
This adds color to some of the search results and sidebar items which were missing.
2016-05-30Rollup merge of #33867 - oli-obk:rustdoc_variant_types, r=GuillaumeGomezManish Goregaokar-0/+19
print enum variant fields in docs Right now we are repeating enum variants at the top, because the fields aren't shown with the actual docs. It's very annoying to have to scroll up and down to have both docs and field info. For struct variants we already list the fields. enum docs look like this after this PR: ![screenshot from 2016-05-25 14-02-42](https://cloud.githubusercontent.com/assets/332036/15539231/84b018cc-2281-11e6-9666-1063655931f4.png) There are degenerate cases for enum tuple variants with lots of fields: ![screenshot from 2016-05-25 14-01-00](https://cloud.githubusercontent.com/assets/332036/15539260/91e537ca-2281-11e6-8bf1-a3d6b2e78f65.png) I was thinking that we could move the docs below the variant (slightly indented) or list the variant fields vertically instead of horizontally r? @steveklabnik
2016-05-30print enum variant fields in docsOliver Schneider-0/+19
2016-05-27Rollup merge of #33829 - GuillaumeGomez:stability-css, r=steveklabnikGuillaume Gomez-0/+4
Fix invalid background color in stability elements r? @steveklabnik
2016-05-24Fix invalid background color in stability elementsGuillaume Gomez-0/+4
2016-05-22Fixed shortcut handling. Reverted to [Shift]+[+=]Alex Ozdemir-2/+2
Realized browsers use [Ctrl]+[+=] for zoom, so using [Shift]+[+=] for collapse/expand was not necessarily a conflict. Also a bugfix.
2016-05-22Changed toggle all sections key to `T`Alex Ozdemir-1/+2
Allows both `T` and `t`. It had been [Shift]+[+] before.
2016-05-20Added a `rustdoc` shortcut for collapse/expand allAlex Ozdemir-3/+9
Now when the user presses the "+" key all sections will collapse/expand. Also added a note to the help screen which describes this behavior.