summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2016-09-26Auto merge of #36764 - jonathandturner:rollup, r=jonathandturnerbors-0/+5
Rollup of 14 pull requests - Successful merges: #36563, #36574, #36586, #36662, #36663, #36669, #36676, #36721, #36723, #36727, #36729, #36742, #36754, #36756 - Failed merges:
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-26deduplicate inline is_nightly_build implementationsTim Neumann-7/+4
2016-09-26refactor away get_unstable_features_settingTim Neumann-5/+3
2016-09-24Rollup merge of #36559 - grimreaper:eax/fix/r1, r=nikomatsakisGuillaume Gomez-6/+7
Fix a variety of minor issues CSS: - use integer values for font-size in CSS - use correct ordering of @import - "invisible" isn't a tag - presume its a class - "border-color" defines the complete border python: - use "not" instead of == "[]" for python - prefer triple quoted docstrings - prefer static functions where possible - prefer modern style classes where possible - remove semicolons; global: - remove duplicated words words
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-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-7/+5
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-17duplicate theEitan Adler-1/+1
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-15Auto merge of #36393 - petrochenkov:ancient, r=eddybbors-1/+1
Remove some obsolete code from the compiler
2016-09-14Auto merge of #36293 - liigo:docblock-short, r=steveklabnikbors-10/+10
rustdoc: don't collapse `docblock-short` ![docblock-short](https://cloud.githubusercontent.com/assets/346530/18267298/137d2542-7451-11e6-9c8e-dd4e1f1fea29.png)
2016-09-14Auto merge of #36472 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-20/+17
Rollup of 5 pull requests - Successful merges: #36334, #36335, #36363, #36374, #36467 - Failed merges:
2016-09-14Rollup merge of #36334 - GuillaumeGomez:run_but, r=steveklabnikGuillaume Gomez-20/+17
Set run button transparent instead of invisible r? @steveklabnik And of course a screenshot: ![screenshot from 2016-09-08 01-15-45](https://cloud.githubusercontent.com/assets/3050060/18331849/31fe1f8c-7562-11e6-9ae9-1dab44089ec6.png)
2016-09-14Auto merge of #35667 - ollie27:rustdoc_opaque_structs, r=steveklabnikbors-6/+15
rustdoc: Don't add extra newlines for fully opaque structs Changes the definition for braced structs with only private or hidden fields to save space on the page. Before: ``` pub struct Vec<T> { // some fields omitted } ``` After: ``` pub struct Vec<T> { /* fields omitted */ } ``` This also cleans up empty braced structs. Before: ``` pub struct Foo { } ``` After: ``` pub struct Foo {} ``` [before](https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html) [after](https://ollie27.github.io/rust_doc_test/std/vec/struct.Vec.html) cc #34713
2016-09-13Remove some ancient code providing special support for newtypesVadim Petrochenkov-1/+1
2016-09-10Rollup merge of #36045 - ollie27:rustdoc_titles3, r=steveklabnikGuillaume Gomez-3/+15
rustdoc: Add missing item types to page titles Most pages include the item type in the title such as "Struct std::vec::Vec". However it is missing from the pages for foreign functions, type definitions, macros, statics and constants. This adds them so for example, instead of a title of "std::u32::MAX" it is "Constant std::u32::MAX" to match the others. [before](https://doc.rust-lang.org/nightly/std/u32/constant.MAX.html) [after](https://ollie27.github.io/rust_doc_test/std/u32/constant.MAX.html) [before](https://doc.rust-lang.org/nightly/std/io/type.Result.html) [after](https://ollie27.github.io/rust_doc_test/std/io/type.Result.html) Previous discussions: #34345, #35003
2016-09-09rustdoc: more docblock-short stylesLiigo-5/+5
2016-09-09rustdoc: don't collapse `docblock-short`Liigo-5/+5
2016-09-09rustdoc: Don't add extra newlines for fully opaque structsOliver Middleton-6/+15
Changes the definition for opaque structs to look like `pub struct Vec<T> { /* fields omitted */ }` to save space on the page. Also only use one line for empty braced structs.
2016-09-08Set run button transparent instead of invisibleGuillaume Gomez-20/+17
2016-09-07Auto merge of #36266 - Sawyer47:issue-35169, r=alexcrichtonbors-27/+60
rustdoc: Filter more incorrect methods inherited through Deref Old code filtered out only static methods. This code also excludes &mut self methods if there is no DerefMut implementation. Fixes #35169
2016-09-05Auto merge of #36078 - ollie27:rustdoc_search_assocconst, r=alexcrichtonbors-11/+10
rustdoc: Fix associated consts in search results Associated consts can appear in none trait impls so need to be treated like methods when generating the search index. Fixes #36031
2016-09-05rustdoc: Filter more incorrect methods inherited through DerefPiotr Jawniak-27/+60
Old code filtered out only static methods. This code also excludes &mut self methods if there is no DerefMut implementation
2016-09-04Replace `_, _` with `..`Vadim Petrochenkov-1/+1
2016-09-03Fix rebase + address commentsVadim Petrochenkov-4/+3
2016-09-03Support unions in rustdocVadim Petrochenkov-4/+84
2016-08-29Add some features to flock.Michael Woerister-1/+1
2016-08-29Move `flock.rs` from librustdoc to librustc_data_structures.Michael Woerister-1/+2
2016-08-29rustdoc: Fix associated consts in search resultsOliver Middleton-11/+10
Associated consts can appear in none trait impls so need to be treated like methods when generating the search index.
2016-08-27rustdoc: Add missing item types to page titlesOliver Middleton-3/+15
Most pages include the item type in the title such as "Struct std::vec::Vec". However it is missing from the pages for foreign functions, type definitions, macros, statics and constants. This adds them so for example, instead of a title of "std::u32::MAX" it is "Constant std::u32::MAX" to match the others.
2016-08-27Use deterministic `FnvHash{Map,Set}` in rustdocJonas Schievink-28/+29
2016-08-24Remove unnecessary 'Primitive' prefix on `PrimitiveType` enum variants.Corey Farwell-7/+7
2016-08-24Stop reexporting `PrimitiveType` enum in librustdoc.Corey Farwell-13/+14
2016-08-24Migrate ItemType::from_type_kind to convert::From.Corey Farwell-3/+5
2016-08-24Migrate ItemType::from_item to convert::From.Corey Farwell-3/+5
2016-08-24Migrate Context::maybe_ignore_item method to standalone function.Corey Farwell-14/+14
The method wasn't using any `self` data from Context, so it seemed miseading to implement it as a method.
2016-08-24Move ItemEnum → Generics logic into method on ItemEnum.Corey Farwell-11/+2
2016-08-20Rollup merge of #35234 - nrc:rustdoc-macros, r=steveklabnikJonathan Turner-0/+10
rustdoc: remove the `!` from macro URLs and titles Because the `!` is part of a macro use, not the macro's name. E.g., you write `macro_rules! foo` not `macro_rules! foo!`, also `#[macro_import(foo)]`. (Pulled out of #35020).
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-19RedirectNick Cameron-0/+10
2016-08-17Auto merge of #35236 - nrc:rustdoc-redirects, r=@alexcrichtonbors-136/+253
rustdoc: redirect URLs cc #35020 which does this properly r? @alexcrichton
2016-08-17Review changesNick Cameron-39/+75
2016-08-17rustdoc: redirects from sane, namespaced URLs to Rustdoc's ridiculous onesNick Cameron-17/+48
cc #35020 which does this properly
2016-08-17rustdoc: add namespaces for itemsNick Cameron-0/+48
2016-08-17rustdoc: refactoring and tidying upNick Cameron-112/+114
pulled out of #35020
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