summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2017-12-29Auto merge of #46883 - QuietMisdreavus:faildown, r=GuillaumeGomezbors-1/+7
rustdoc: add option to abort the process on markdown differences In the efforts of keeping the std docs free of markdown warnings, this PR adds a stopgap measure to make sure the CI fails if it detects a markdown difference. It does this by adding a new unstable flag to rustdoc, `--deny-render-differences`, which bootstrap then passes to rustdoc when documenting std and friends. The implementation is... probably not the cleanest option. It currently adds an extra branch after it prints the markdown warnings, which just prints a final line and calls `::std::process::abort(1)`. I did it like this because if it just panics regularly, it looks like an ICE, an even though `html::render::run` returns a Result, that Result is also just `expect`ed immediately, generating the same problem. This way bypasses the panic handler at the top of the thread and looks like a proper failure. Since i don't have a real error Handler there, this is the best i can do without pulling in a real error system for rustdoc. This PR is blocked on https://github.com/rust-lang/rust/pull/46853, which will fix the rendering differences that were present on master when i started this branch.
2017-12-28rustdoc: Don't try to generate links for modules in import pathsOliver Middleton-24/+2
The modules may be private or may even be enums so it would generate dead links.
2017-12-27rustdoc: add option to abort process on markdown differencesQuietMisdreavus-1/+7
2017-12-21Auto merge of #46922 - kennytm:rollup, r=kennytmbors-3/+4
Rollup of 14 pull requests - Successful merges: #46636, #46780, #46784, #46809, #46814, #46820, #46839, #46847, #46858, #46878, #46884, #46890, #46898, #46918 - Failed merges:
2017-12-21Auto merge of #45930 - jplatte:generics_refactoring, r=eddybbors-45/+24
Generics refactoring (groundwork for const generics) These changes were suggested by @eddyb. After this change, the `Generics` contain one `Vec` of an enum for the generic parameters, rather than two separate `Vec`s for lifetime and type parameters. Type params and const params will need to be in a shared `Vec` to preserve their ordering, and moving lifetimes into the same `Vec` should simplify the code that processes `Generics`.
2017-12-22Rollup merge of #46847 - GuillaumeGomez:more-sidebar-escape, r=QuietMisdreavuskennytm-3/+4
Escape more items in the sidebar when needed Fixes #46724. r? @QuietMisdreavus
2017-12-21Add GenericParam, refactor Generics in ast, hir, rustdocJonas Platte-45/+24
The Generics now contain one Vec of an enum for the generic parameters, rather than two separate Vec's for lifetime and type parameters. Additionally, places that previously used Vec<LifetimeDef> now use Vec<GenericParam> instead.
2017-12-21Rollup merge of #46861 - GuillaumeGomez:fix-ios-sidebar, r=QuietMisdreavusGuillaume Gomez-10/+50
Fix sidebar on ios r? @QuietMisdreavus
2017-12-21Escape more items in the sidebar when neededGuillaume Gomez-3/+4
2017-12-20Rollup merge of #46787 - varkor:contrib-6, r=QuietMisdreavuskennytm-4/+13
Add an option to allow rustdoc to list modules by appearance The `--sort-modules-by-appearance` option will list modules in the order that they appear in the source, rather than sorting them alphabetically (as is the default). This resolves #8552.
2017-12-20Fix sidebar on iosGuillaume Gomez-10/+50
2017-12-18Rollup merge of #46825 - GuillaumeGomez:mobile-search, r=QuietMisdreavusGuillaume Gomez-0/+20
Improve search display on mobile r? @QuietMisdreavus
2017-12-18Rollup merge of #46824 - GuillaumeGomez:doc-sidebar, r=QuietMisdreavusGuillaume Gomez-1/+1
Fix dynamic crates listing in doc sidebar Fixes #46687. r? @QuietMisdreavus
2017-12-18Improve search display on mobileGuillaume Gomez-0/+20
2017-12-18Fix dynamic crates listing in doc sidebarGuillaume Gomez-1/+1
2017-12-17Add an option to allow rustdoc to list modules by appearancevarkor-4/+13
The `--sort-modules-by-appearance` option will list modules in the order that they appear in the source, rather than sorting them alphabetically (as is the default). This resolves #8552.
2017-12-15Improve results a bitGuillaume Gomez-2/+6
2017-12-15make doc search more relevantGuillaume Gomez-12/+7
2017-12-14Use PathBuf instead of String where applicableOliver Schneider-30/+37
2017-12-13Rollup merge of #46672 - GuillaumeGomez:fix-type-filter-search, ↵kennytm-4/+4
r=QuietMisdreavus Fix type filter in rustdoc js Fixes #46612. r? @QuietMisdreavus
2017-12-13Rollup merge of #46668 - GuillaumeGomez:mobile-sidebar, r=QuietMisdreavuskennytm-4/+27
Fix mobile doc style and improve search bar Fixes #46593. r? @QuietMisdreavus
2017-12-12Fix type filter in rustdoc jsGuillaume Gomez-4/+4
2017-12-11Fix mobile doc style and improve search barGuillaume Gomez-4/+27
2017-12-10Auto merge of #46232 - canndrew:never-docs, r=QuietMisdreavusbors-1/+1
Add docs for never primitive cc @nikomatsakis, @QuietMisdreavus
2017-12-10Auto merge of #46602 - mbrubeck:try, r=kennytmbors-14/+9
Replace option_try macros and match with ? operator None
2017-12-09Use Try syntax for Option in place of macros or matchMatt Brubeck-14/+9
2017-12-09Auto merge of #46586 - GuillaumeGomez:fix-mobile-important-display, ↵bors-1/+9
r=QuietMisdreavus Fixes doc important trait display on mobile Fixes #46527. r? @QuietMisdreavus
2017-12-08Fixes doc important trait display on mobileGuillaume Gomez-1/+9
2017-12-08Auto merge of #46247 - GuillaumeGomez:md-warnings, r=QuietMisdreqvusbors-8/+16
Md warnings Fixes #45365. r? @QuietMisdreavus
2017-12-07Rollup merge of #46526 - GuillaumeGomez:mobile-sidebar, r=QuietMisdreavusGuillaume Gomez-5/+76
Greatly improve sidebar when width < 700px Fixes #36531. r? @QuietMisdreavus A few screenshots: <img width="1440" alt="screen shot 2017-12-06 at 00 41 36" src="https://user-images.githubusercontent.com/3050060/33636875-6ad8b1a6-da1e-11e7-8d5b-d6d530ea5258.png"> <img width="1440" alt="screen shot 2017-12-06 at 00 41 40" src="https://user-images.githubusercontent.com/3050060/33636876-6af58196-da1e-11e7-82ab-b82768958037.png">
2017-12-07Rollup merge of #46444 - GuillaumeGomez:css-cleanup, r=QuietMisdreavusGuillaume Gomez-33/+100
Move colors to main.css r? @QuietMisdreavus
2017-12-07fix markdown file differencesGuillaume Gomez-6/+11
2017-12-07Generate difference warnings for markdown files as wellGuillaume Gomez-2/+5
2017-12-07Fix JS errorsGuillaume Gomez-2/+8
2017-12-07Greatly improve sidebar when width < 700pxGuillaume Gomez-5/+70
2017-12-07Auto merge of #46221 - GuillaumeGomez:doc-script-load-speedup, r=nrcbors-2/+9
Speedup search loading when search url is received Fixes #45971. r? @nrc cc @rust-lang/docs
2017-12-06Rollup merge of #46502 - GuillaumeGomez:improve-search-style, r=QuietMisdreavusCorey Farwell-1/+10
Improve search style Fixes #46494. r? @QuietMisdreavus
2017-12-06Auto merge of #45898 - JRegimbal:master, r=QuietMisdreavusbors-6/+6
Change "Types/modules" title of search tab to be more accurate From issue #45787. Used "In name" as per suggestion from @Seeker14491.
2017-12-05Changed tab names to those agreed upon.JRegimbal-6/+6
Tabs are "In Names", "In Parameters", and "In Return Types".
2017-12-04Improve search styleGuillaume Gomez-1/+10
2017-12-03Rollup merge of #46454 - GuillaumeGomez:search-overlap, r=QuietMisdreavusCorey Farwell-0/+1
Fix search results overlap Fixes #46434. r? @QuietMisdreavus
2017-12-03Auto merge of #46433 - GuillaumeGomez:dedup-items, r=QuietMisdreavusbors-3/+10
Fix deduplication of items Fixes #45968. r? @QuietMisdreavus
2017-12-03Auto merge of #46384 - ollie27:rustdoc_inline_assoc, r=QuietMisdreavusbors-1/+2
rustdoc: Fix issues with cross-crate inlined associated items * Visibility was missing from impl items. * Attributes and docs were missing from consts and types in impls. * Const default values were missing from traits. This unifies the code that handles associated items from impls and traits.
2017-12-02Fix search results overlapGuillaume Gomez-0/+1
2017-12-02Move colors to main.cssGuillaume Gomez-33/+100
2017-12-02Auto merge of #46326 - GuillaumeGomez:sidebar-text, r=QuietMisdreavusbors-6/+7
Fix invalid HTML escape Fixes #46289. r? @QuietMisdreavus
2017-12-02Auto merge of #46288 - alexcrichton:bump-bootstrap, r=Mark-Simulacrumbors-2/+0
Bump to 1.24.0 * Update the in-tree version number * Update the bootstrap compiler * Remove `cfg(stage0)` annotations * Update crate dependencies * Update Cargo itself
2017-12-01Fix deduplication of itemsGuillaume Gomez-3/+10
2017-12-02Rollup merge of #46392 - GuillaumeGomez:fix-tooltip, r=QuietMisdreavuskennytm-0/+6
Invert colors in important traits tooltip Part of #46352. r? @QuietMisdreavus
2017-11-29Update bootstrap compilerAlex Crichton-2/+0
Also remove a number of `stage0` annotations and such