summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2017-10-01rustdoc: Style of [src] link for trait implementorsVitaly _Vi Shukela-1/+8
A change suggested by @GuillaumeGomez and @QuietMisdreavus. Also slight reindenting of the appropriate CSS section.
2017-09-29rustdoc: Render [src] links for trait implementors (#43893)Vitaly _Vi Shukela-1/+10
2017-09-29rustdoc: Extract converter from Impementor to Item to a fnVitaly _Vi Shukela-13/+19
2017-09-27Auto merge of #44709 - Badel2:inclusive-range-dotdoteq, r=petrochenkovbors-3/+3
Initial support for `..=` syntax #28237 This PR adds `..=` as a synonym for `...` in patterns and expressions. Since `...` in expressions was never stable, we now issue a warning. cc @durka r? @aturon
2017-09-24Rollup merge of #44789 - GuillaumeGomez:fix-rustdoc-display, r=QuietMisdreavusGuillaume Gomez-1/+1
Fix warning position in rustdoc code blocks Before: <img width="1440" alt="screen shot 2017-09-23 at 14 07 08" src="https://user-images.githubusercontent.com/3050060/30773382-b9649288-a06f-11e7-94ec-faa3c3ed999b.png"> After: <img width="1440" alt="screen shot 2017-09-23 at 14 58 31" src="https://user-images.githubusercontent.com/3050060/30773384-bdfc9f3e-a06f-11e7-9030-9fb8a5308668.png"> r? @QuietMisdreavus
2017-09-23Fix warning position in rustdoc code blocksGuillaume Gomez-1/+1
2017-09-23Rollup merge of #44554 - GuillaumeGomez:add-missing-pub, r=QuietMisdreavusCorey Farwell-2/+4
Add pub visibility for methods as well Fixes #44527. r? @QuietMisdreavus
2017-09-22Add support for `..=` syntaxAlex Burka-3/+3
Add ..= to the parser Add ..= to libproc_macro Add ..= to ICH Highlight ..= in rustdoc Update impl Debug for RangeInclusive to ..= Replace `...` to `..=` in range docs Make the dotdoteq warning point to the ... Add warning for ... in expressions Updated more tests to the ..= syntax Updated even more tests to the ..= syntax Updated the inclusive_range entry in unstable book
2017-09-20Auto merge of #44350 - GuillaumeGomez:id-false-positive, r=QuietMisdreavusbors-24/+44
Improve how rustdoc warnings are displayed cc @rust-lang/dev-tools r? @nrc
2017-09-19Improve how warnings are displayedGuillaume Gomez-24/+44
2017-09-19Add pub visibility for methods as wellGuillaume Gomez-2/+4
2017-09-19Auto merge of #44026 - QuietMisdreavus:trimmed-std, r=steveklabnikbors-17/+29
hide internal types/traits from std docs via new #[doc(masked)] attribute Fixes #43701 (hopefully for good this time) This PR introduces a new parameter to the `#[doc]` attribute that rustdoc looks for on `extern crate` statements. When it sees `#[doc(masked)]` on such a statement, it hides traits and types from that crate from appearing in either the "Trait Implementations" section of many type pages, or the "Implementors" section of trait pages. This is then applied to the `libc`/`rand`/`compiler_builtins` imports in libstd to prevent those crates from creating broken links in the std docs. Like in #43348, this also introduces a feature gate, `doc_masked`, that controls the use of this parameter. To view the std docs generated with this change, head to https://tonberry.quietmisdreavus.net/std-43701/std/index.html.
2017-09-18Rollup merge of #44671 - GuillaumeGomez:run-button, r=steveklabnikAlex Crichton-0/+5
Fix run button r? @QuietMisdreavus Before: ![before](https://user-images.githubusercontent.com/3050060/30538927-612c6a44-9c70-11e7-9ca2-f3860d880b95.png) After: ![after](https://user-images.githubusercontent.com/3050060/30538929-6416ea0e-9c70-11e7-990a-7e4fbf5d7319.png) Quite urgent.
2017-09-18Fix run buttonGuillaume Gomez-0/+5
2017-09-17Add more links and put the link character to the leftGuillaume Gomez-5/+15
2017-09-17Rollup merge of #44397 - GuillaumeGomez:codeblock-color, r=QuietMisdreavusTim Neumann-10/+142
Codeblock color <img width="1440" alt="screen shot 2017-09-07 at 21 53 58" src="https://user-images.githubusercontent.com/3050060/30183045-4319108e-9419-11e7-98da-da54952cab37.png"> This screenshot has been generated from: ```rust /// foo /// /// ```compile_fail /// foo(); /// ``` /// /// ```ignore /// goo(); /// ``` /// /// ``` /// let x = 0; /// ``` pub fn bar() -> usize { 2 } ``` r? @QuietMisdreavus cc @rust-lang/docs
2017-09-15Auto merge of #43949 - GuillaumeGomez:compile_fail_stable, r=alexcrichtonbors-3/+1
Compile fail stable Since #30726, we never made the `compile_fail` flag nor the error code check stable. I think it's time to change this fact. r? @alexcrichton
2017-09-14Rollup merge of #44368 - ollie27:rustdoc_pulldown_ids, r=QuietMisdreavusCorey Farwell-2/+6
rustdoc: Don't counts ids twice when using --enable-commonmark cc @GuillaumeGomez r? @QuietMisdreavus
2017-09-14Rollup merge of #44254 - GuillaumeGomez:const-fix-rustdoc, r=QuietMisdreavusCorey Farwell-17/+4
Fix rendering of const keyword for functions Fixes #44187. r? @QuietMisdreavus
2017-09-12Fix rendering of const keyword for functionsGuillaume Gomez-17/+4
2017-09-11Add arrow and improve displayGuillaume Gomez-36/+98
2017-09-11Add class for codeblocksGuillaume Gomez-9/+79
2017-09-11rustc: replace usize with u64 and ConstUsize.Eduard-Mihai Burtescu-1/+1
2017-09-10Rollup merge of #44347 - GuillaumeGomez:rustdoc-false-positive, ↵Guillaume Gomez-3/+7
r=QuietMisdreavus Reduce false positives number in rustdoc html diff cc @rust-lang/dev-tools r? @nrc Very simple trick but should lighten html diff a bit
2017-09-10Rollup merge of #44329 - nrc:pulldown-warn-fix, r=ollie27Guillaume Gomez-80/+22
Fixup some nits from #44238 r? @ollie27
2017-09-10Auto merge of #44274 - Mark-Simulacrum:rustdoc-tests, r=alexcrichtonbors-2/+4
Test rustdoc. Also fixes the broken tests. r? @alexcrichton
2017-09-06rustdoc: Don't counts ids twice when using --enable-commonmarkOliver Middleton-2/+6
2017-09-06Reduce false positives number in rustdoc html diffGuillaume Gomez-3/+7
2017-09-06Fixup some nits from #44238Nick Cameron-80/+22
2017-09-05new attribute #[doc(masked)] to hide internal crates from std docsQuietMisdreavus-17/+29
2017-09-05Test rustdoc unit tests.Mark Simulacrum-2/+4
Doc tests are temporarily disabled until next release cycle, since current beta Cargo errors on them. Upgrade should be smooth as the relevant tests are already fixed in this commit.
2017-09-05add "Implementations on Foreign Types" to the sidebarQuietMisdreavus-0/+11
2017-09-05if not showing default docs on an impl, autohide the itemsQuietMisdreavus-0/+9
2017-09-05rustdoc: add new "Implementations on Foreign Types" section to traitsQuietMisdreavus-14/+56
2017-09-01set compile_fail flag stableGuillaume Gomez-3/+1
2017-09-01Auto merge of #44238 - nrc:pulldown-warn, r=@QuietMisdreavusbors-35/+210
Improve the Pulldown/hoedown warnings cc #44229 r? @QuietMisdreavus
2017-09-01Windows line endingsNick Cameron-1/+1
2017-09-01Do a better job of eliding whitespace-only differences from warningsNick Cameron-1/+67
2017-09-01Improve the appearance of markdown warningsNick Cameron-14/+98
2017-09-01rustdoc: collect rendering warnings and print them in one placeNick Cameron-16/+34
2017-08-31Rollup merge of #44192 - GuillaumeGomez:sub-fields-style, r=QuietMisdreavusMark Simulacrum-5/+9
Fix invalid display of enum sub-fields docs Before: <img width="1440" alt="screen shot 2017-08-30 at 23 17 00" src="https://user-images.githubusercontent.com/3050060/29895433-61f2bf8c-8dd9-11e7-83e8-cf1dca878100.png"> After: <img width="1440" alt="screen shot 2017-08-30 at 23 16 48" src="https://user-images.githubusercontent.com/3050060/29895441-66dea042-8dd9-11e7-9576-11b0c770c70b.png"> cc @nox @rust-lang/docs
2017-09-01Only emit warnings if the user is using PulldownNick Cameron-25/+32
Also checks for differences after eliminating whitespace-only diffs. Renames get_html_diff
2017-08-31Auto merge of #41991 - GuillaumeGomez:rustdoc-html-diff, r=nrcbors-2/+31
Add warnings when rustdoc html rendering differs
2017-08-30Fix invalid display of enum sub-fields docsGuillaume Gomez-5/+9
2017-08-30Remove some false positive issuesGuillaume Gomez-1/+9
2017-08-30Print warning whatever the rendering modeGuillaume Gomez-26/+15
2017-08-30Update unstable-crate testGuillaume Gomez-7/+8
2017-08-30Add warnings when rustdoc html rendering differsGuillaume Gomez-2/+33
2017-08-29Rollup merge of #44135 - GuillaumeGomez:fix-css-links, r=QuietMisdreavusAriel Ben-Yehuda-6/+9
Fix invalid linker position Fixes #44120. Result isn't "optimal" though because there are spaces at the end of some lines.
2017-08-29Rollup merge of #43918 - mystor:rustdoc-pound, r=QuietMisdreavusAriel Ben-Yehuda-15/+43
Don't highlight # which does not start an attribute in rustdoc Currently when we highlight some macros for rustdoc (e.g. `quote!` from https://github.com/dtolnay/quote), we get really bad syntax highlighting, because we assume that every token between a `#` character and the next `]` in the source must be an attribute. This patch improves that highlighting behavior to instead only highlight after finding the `[` token after the `#` token. (NOTE: I've only run this patch against https://github.com/nrc/rustdoc-highlight so if it doesn't build on travis that's why - I don't have a recent rustc build on this laptop) I'm guessing r? @steveklabnik