about summary refs log tree commit diff
path: root/src/librustdoc/html/layout.rs
AgeCommit message (Collapse)AuthorLines
2018-04-22Auto merge of #49954 - GuillaumeGomez:doc-settings, r=ollie27,QuietMisdreavusbors-2/+6
Add rustdoc settings menu Fixes #18167. r? @QuietMisdreavus
2018-04-21Generate alias fileGuillaume Gomez-0/+1
2018-04-17Add rustdoc settings menuGuillaume Gomez-2/+6
2018-04-14Add docGuillaume Gomez-0/+4
2018-04-14Small size reductionGuillaume Gomez-122/+106
2018-03-29Rename main theme into light themeGuillaume Gomez-1/+1
2018-03-05Add resource-suffix option for rustdocGuillaume Gomez-11/+16
2018-01-24Few fixes for multiple themes support featureGuillaume Gomez-3/+5
2018-01-23Fasten even more theme switchGuillaume Gomez-2/+11
2018-01-22Fasten up theme loadingGuillaume Gomez-3/+4
2018-01-22Change theme iconGuillaume Gomez-1/+2
2018-01-21Add possibility to have multiple themesGuillaume Gomez-2/+6
2018-01-15extended dt with kbd tagsMarcel Hellwig-8/+10
removed styling of dt tages, which would make them look like keys and added <kbd> tag inside of dt tag. Added css style for kbd and removed some stylings for dt
2017-12-07Greatly improve sidebar when width < 700pxGuillaume Gomez-0/+1
2017-11-07Add "-" shortcutGuillaume Gomez-1/+1
2017-10-19Auto merge of #45288 - GuillaumeGomez:tab-key-binding, r=QuietMisdreavusbors-0/+2
Save the highlighted item when switching tab To be merged after #45281. r? @rust-lang/docs
2017-10-14Fix arrow displayGuillaume Gomez-2/+2
2017-10-14Save current highlighted item in search tabGuillaume Gomez-0/+2
2017-05-02Remove jquery dependencyGuillaume Gomez-1/+0
2017-03-28Make the rustdoc sidebar white on `src` pagesWesley Wiser-2/+2
Fixes #40724
2016-12-19Don't @import normalize.css.Clar Charr-0/+1
2016-10-15rustdoc: Improve playground run buttonsOliver Middleton-9/+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-05Fixes run button appearing when it shouldn'tGuillaume Gomez-2/+2
2016-08-17rustdoc: refactoring and tidying upNick Cameron-3/+3
pulled out of #35020
2016-05-20Added a `rustdoc` shortcut for collapse/expand allAlex Ozdemir-0/+2
Now when the user presses the "+" key all sections will collapse/expand. Also added a note to the help screen which describes this behavior.
2016-05-03Remove unused trait imports flagged by lintSeo Sanghyeon-1/+0
2016-04-05Add --extend-css option to rustdocGuillaume Gomez-2/+10
2016-02-16doc pages: add the ability to search unknown typesBrandon W Maister-1/+1
This enables `*` in all type positions in doc searches, which I often want in order to find functions that create or convert specific types (e.g. `* -> vec`) but I don't actually know what kinds of input they expect. I actually started working on this because of #31598, but I've wanted it several times when exploring new crates.
2016-01-20Add alt tags for logosSteve Klabnik-1/+1
2015-12-04Split rustdoc css to modify it more easilyGuillaume Gomez-0/+1
2015-11-18Fix unpredictable ordering of sidebar boxes in rustdocJoshua Holmer-1/+1
A race condition in Javascript was causing unpredictable ordering of the sidebar boxes when loading documentation generated by rustdoc, due to the script that adds the Crates box being executed asynchronously. Disabling the asynchronous execution and deferring this script should ensure that the Crates box always appears last in the sidebox (this seemed to be the more common ordering prior to this change). Fixes #29698
2015-09-09rustdoc: Tweak the main template and CSS for semantic mark-up.Kang Seonghoon-6/+8
- section.sidebar -> nav.sidebar, also added an unordered list. - div#help -> aside#help, also added a hidden heading. - the current crate is now emphasized in the sidebar. Fixes #16310.
2015-08-04Improve rustdoc search type filtering.Eljay-2/+2
2015-07-20librustdoc: blur page when help dialogue is presentAndreas Tolfsen-31/+38
Blurs the document's background when the help dialogue is present, making the contents of the dialogue stand out more.
2015-07-08librustdoc: sharpen help dialogue edgesAndreas Tolfsen-3/+3
Sharpens the help dialogues edges by removing border-padding, which matches better with the rest of the document. Also increases somewhat the rounded edges of the key symbols to make it clear they are symbols. Also introduces closing apostrophes and ellipsis for search field placeholder.
2015-05-06Add note about type signature searching to docsAndrei Oprea-0/+4
2015-04-14Positive case of `len()` -> `is_empty()`Tamir Duberstein-3/+3
`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
2015-03-04std: Deprecate std::old_io::fsAlex Crichton-4/+5
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change.
2015-01-26Fallout of io => old_ioAlex Crichton-4/+4
2015-01-20std: Rename Show/String to Debug/DisplayAlex Crichton-1/+1
This commit is an implementation of [RFC 565][rfc] which is a stabilization of the `std::fmt` module and the implementations of various formatting traits. Specifically, the following changes were performed: [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0565-show-string-guidelines.md * The `Show` trait is now deprecated, it was renamed to `Debug` * The `String` trait is now deprecated, it was renamed to `Display` * Many `Debug` and `Display` implementations were audited in accordance with the RFC and audited implementations now have the `#[stable]` attribute * Integers and floats no longer print a suffix * Smart pointers no longer print details that they are a smart pointer * Paths with `Debug` are now quoted and escape characters * The `unwrap` methods on `Result` now require `Display` instead of `Debug` * The `Error` trait no longer has a `detail` method and now requires that `Display` must be implemented. With the loss of `String`, this has moved into libcore. * `impl<E: Error> FromError<E> for Box<Error>` now exists * `derive(Show)` has been renamed to `derive(Debug)`. This is not currently warned about due to warnings being emitted on stage1+ While backwards compatibility is attempted to be maintained with a blanket implementation of `Display` for the old `String` trait (and the same for `Show`/`Debug`) this is still a breaking change due to primitives no longer implementing `String` as well as modifications such as `unwrap` and the `Error` trait. Most code is fairly straightforward to update with a rename or tweaks of method calls. [breaking-change] Closes #21436
2015-01-06core: split into fmt::Show and fmt::StringSean McArthur-1/+1
fmt::Show is for debugging, and can and should be implemented for all public types. This trait is used with `{:?}` syntax. There still exists #[derive(Show)]. fmt::String is for types that faithfully be represented as a String. Because of this, there is no way to derive fmt::String, all implementations must be purposeful. It is used by the default format syntax, `{}`. This will break most instances of `{}`, since that now requires the type to impl fmt::String. In most cases, replacing `{}` with `{:?}` is the correct fix. Types that were being printed specifically for users should receive a fmt::String implementation to fix this. Part of #20013 [breaking-change]
2015-01-03sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rsJorge Aparicio-1/+1
2014-12-04rustdoc: Preserve query/fragment in redirects whenever possible.Kang Seonghoon-0/+3
We heavily rely on queries and fragments in the URL structure, so it is desired to preserve them even in the redirects. The generated redirect pages try to preserve them with scripts, which take precedence over the original `Refresh` metadata. Non-scripting browsers would continue to work (with no queries and fragments).
2014-08-09removing 'str'='struct' search synonymAlexis Beingessner-1/+1
fixes #16384
2014-08-04rustdoc: Emit keywords for all crate pagesBrian Anderson-1/+4
cc #12466
2014-08-04rustdoc: Use more descriptive description metadata.Brian Anderson-1/+3
This text appears in and improves search results. cc #12466
2014-08-02rustdoc: Add rustdoc class to <body> tagTom Jakubowski-1/+1
This allows for easier application of user stylesheets to rustdocs no matter where they are hosted.
2014-08-02rustdoc: Add generator meta tag to API docsTom Jakubowski-0/+1
This is consistent with the meta tag in Markdown docs run through rustdoc.
2014-07-08webfonts: serve Source Code Pro locallyAdrien Tétar-2/+0
So that we have freestanding docs.
2014-06-30Allow external html in rustdoc for crates.zzmp-0/+11
Updated documentation to reflect md->html. Modularized external file loading.