summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
AgeCommit message (Collapse)AuthorLines
2019-03-17Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-8/+6
2019-02-23Rollup merge of #58643 - GuillaumeGomez:extra-variables, r=ManishearthMazdak Farrokhzad-1/+5
Don't generate minification variables if minification disabled If the minification is disabled, there is no sense having those variables. r? @QuietMisdreavus
2019-02-23Fix tidy check errorsHirokazu Hata-2/+7
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-84/+84
2019-02-22Don't generate minification variable if minification disabledGuillaume Gomez-1/+5
2019-02-20Rollup merge of #58409 - euclio:impl-trait-wrapping, r=QuietMisdreavuskennytm-19/+23
rustdoc: respect alternate flag when formatting impl trait Fixes #58226. Before: <img width="963" alt="screen shot 2019-02-12 at 3 23 30 pm" src="https://user-images.githubusercontent.com/1372438/52665732-4496ea00-2eda-11e9-9e29-efffe43b2abf.png"> After: <img width="964" alt="screen shot 2019-02-12 at 3 23 51 pm" src="https://user-images.githubusercontent.com/1372438/52665733-452f8080-2eda-11e9-999a-dd1fb28dee16.png">
2019-02-20Rollup merge of #58303 - GuillaumeGomez:stability-tags-display, ↵kennytm-2/+1
r=QuietMisdreavus Improve stability tags display The issue was the font color on dark theme. Fixed now: <img width="352" alt="screenshot 2019-02-08 at 14 15 24" src="https://user-images.githubusercontent.com/3050060/52483276-bd810380-2bb3-11e9-8d46-95368569ac85.png"> r? @QuietMisdreavus
2019-02-19Auto merge of #58503 - varkor:const-generics-hir, r=petrochenkovbors-1/+2
Add const generics to the HIR Split out from https://github.com/rust-lang/rust/pull/53645. cc @yodaldevoid r? @eddyb
2019-02-17Rollup merge of #57929 - GuillaumeGomez:rustodc-remove-old-style-files, ↵kennytm-10/+15
r=ollie27 Rustdoc remove old style files Reopening of #56577 (which I can't seem to reopen...). I made the flag unstable so with this change, what was blocking the PR is now gone I assume.
2019-02-15Add Const kind to rustdocvarkor-1/+2
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-13Rollup merge of #58202 - varkor:deprecated-future-external, r=GuillaumeGomezMazdak Farrokhzad-7/+24
Ignore future deprecations in #[deprecated] The future deprecation warnings should only apply to `#[rustc_deprecated]` as they take into account rustc's version. Fixes #57952. I've also slightly modified rustdoc's display of future deprecation notices to make it more consistent, so I'm assigning a rustdoc team member for review to make sure this is okay. r? @GuillaumeGomez
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-8/+8
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-12respect alternate flag when formatting impl traitAndy Russell-19/+23
2019-02-11Update existing rustdoc testvarkor-5/+7
2019-02-11Display "Deprecation planned" in rustdoc for future rustc deprecationsvarkor-9/+22
2019-02-11Don't display "Deprecated since" for non-rustc deprecated itemsvarkor-2/+4
2019-02-10rustc: doc commentsAlexander Regueiro-8/+8
2019-02-10Rollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=ManishearthGuillaume Gomez-11/+31
Add trait alias support in rustdoc Fixes #57595. r? @QuietMisdreavus
2019-02-10Rollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomezGuillaume Gomez-3/+5
rustdoc: display sugared return types for async functions Fixes #58027.
2019-02-10Remove spotlight for trait aliases and fix nitsGuillaume Gomez-2/+2
2019-02-10Add trait alias support in rustdocGuillaume Gomez-11/+31
2019-02-09put back macro redirectGuillaume Gomez-0/+9
2019-02-08Improve stability tags displayGuillaume Gomez-2/+1
2019-02-07Rollup merge of #58143 - GuillaumeGomez:sort-elements-in-sidebar, ↵Guillaume Gomez-72/+84
r=QuietMisdreavus Sort elements in the sidebar Fixes #57448. Not sorting fields or variants though. r? @QuietMisdreavus
2019-02-07Rollup merge of #58033 - euclio:rustdoc-tags, r=QuietMisdreavusGuillaume Gomez-7/+8
rustdoc: wrap stability tags in colored spans A cosmetic change to make the stability tags stand out a bit against the docs. Opening for discussion. Before: ![screen shot 2019-01-31 at 3 29 36 pm](https://user-images.githubusercontent.com/1372438/52083406-54730d80-256d-11e9-8e61-b8caff569434.png) ![screen shot 2019-01-31 at 3 31 32 pm](https://user-images.githubusercontent.com/1372438/52083408-54730d80-256d-11e9-97b7-43e808448f65.png) After: ![screen shot 2019-01-31 at 3 29 18 pm](https://user-images.githubusercontent.com/1372438/52083405-54730d80-256d-11e9-9983-19d9519b2ed8.png) ![screen shot 2019-01-31 at 3 29 46 pm](https://user-images.githubusercontent.com/1372438/52083407-54730d80-256d-11e9-8c32-11a1ad7d3f34.png) r? @QuietMisdreavus
2019-02-07Rollup merge of #58028 - GuillaumeGomez:fix-settings-image-link, ↵Guillaume Gomez-4/+16
r=QuietMisdreavus Fix image link in the settings menu Fixes #57892. r? @QuietMisdreavus
2019-02-07Rollup merge of #57954 - euclio:rustdoc-stability, r=QuietMisdreavusGuillaume Gomez-4/+0
rustdoc: remove blank unstable spans Rustdoc generates blank unstable spans for unstable struct fields: ![screen shot 2019-01-28 at 1 05 04 pm](https://user-images.githubusercontent.com/1372438/51856295-5e8ed500-22fd-11e9-8074-025eddb4ef65.png) This PR removes them: ![screen shot 2019-01-28 at 1 07 22 pm](https://user-images.githubusercontent.com/1372438/51856424-aada1500-22fd-11e9-86f0-34e2aa78b8b1.png) r? @QuietMisdreavus
2019-02-06display sugared return types for async functionsAndy Russell-3/+5
2019-02-04sort elements in the sidebarGuillaume Gomez-72/+84
2019-02-01Fix image link in the settings menuGuillaume Gomez-4/+16
2019-01-31Add missing generation for test and proc_macro, remove old macro redirectionGuillaume Gomez-9/+0
2019-01-31rustdoc: wrap stability tags in colored spansAndy Russell-7/+8
2019-01-28rustdoc: remove blank unstable spansAndy Russell-4/+0
2019-01-27Add generate-old-style-files option to rustdocGuillaume Gomez-1/+26
2019-01-27Remove rustdoc old style files generationGuillaume Gomez-21/+1
2019-01-25Update minifier versionGuillaume Gomez-2/+3
2019-01-22Rollup merge of #57552 - GuillaumeGomez:default-images, r=QuietMisdreavusMazdak Farrokhzad-2/+8
Default images Add default rust logo (the image at the top of the sidebar) and default favicon. No more missing image or inexistent icon on the documentation tabs! r? @QuietMisdreavus
2019-01-20Add default favicon for documentationGuillaume Gomez-2/+4
2019-01-20Add default rust logo for documentationGuillaume Gomez-0/+4
2019-01-19Rollup merge of #57476 - Xanewok:bye-crate-analysis, r=ZoxcMazdak Farrokhzad-1/+1
Move glob map use to query and get rid of CrateAnalysis ~Also includes commits from ~https://github.com/rust-lang/rust/pull/57392~ and ~https://github.com/rust-lang/rust/pull/57436~.~ With glob map calculated unconditionally in https://github.com/rust-lang/rust/pull/57392, this PR moves the calculated glob map to `GlobalCtxt` and exposes a relevant query (as we do with other queries which copy precomputed data over from the `Resolver`). This allows us to get rid of the `CrateAnalysis` struct in an attempt to simplify the compiler interface. cc @Zoxc r? @nikomatsakis @Zoxc @petrochenkov
2019-01-18Rollup merge of #57636 - GuillaumeGomez:fix-sources-sidebar, r=QuietMisdreavusMazdak Farrokhzad-1/+1
Fix sources sidebar not showing up Fixes #57601. The order of imports made it so that the sidebar creation was called before the sidebar sources were created. Like this, when the sources are loaded, they create the sidebar as expected. r? @QuietMisdreavus
2019-01-17Querify glob map usage (last use of CrateAnalysis)Igor Matuszewski-1/+1
2019-01-17End fixing search index minificationGuillaume Gomez-22/+92
2019-01-17Minify search-index in one passGuillaume Gomez-5/+5
2019-01-17Reduce search-index.js sizeGuillaume Gomez-1/+4
2019-01-15Fix sources sidebar not showing upGuillaume Gomez-1/+1
2019-01-13Rollup merge of #56874 - JohnHeitmann:docs-spacing, r=GuillaumeGomezMazdak Farrokhzad-51/+19
Simplify foreign type rendering. Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans. Reduces element count on the `std::iter::Iterator` page by 30%. On my laptop it drops Iterator page load time from ~15s to ~10s. Frame times during scrolling are a hair lower too. Known visual changes (happy to tweak based on feedback): * The main `impl ...` headers are now getting the default, larger, h3 font size. This was an accident, but I liked how it turned out so I didn't fix it. * There's a hair less vertical spacing between the end of a where block and the start of the next fn. Now, all spacing is consistent. I think this looks a bit worse. I may tweak vertical spacing more here or in a follow-up that cleans up vertical spacing more broadly. * "[src]" links are all sized at 17px. A few were 19px in the original. I haven't yet done heavy cross-browser or cross-crate testing. I was hoping to get a quick thumbs up or thumbs down here at this first draft, then if this is on the right track I'll spend some time on that testing. TODO: - [x] Test on Chrome - [x] Test on Firefox - [ ] ~~Test on UC Android~~ - [x] Test on Edge - [x] Test on iOS safari - [x] Test on desktop safari - [x] Update automated tests - [x] Increase vertical margin - [x] Fix "Important traits for" hover overlap - [x] Wait for #55798 to land & merge it
2019-01-07Update static files code for updated Source Serif Pro fontTrevor Spiteri-6/+4
2018-12-29Auto merge of #57006 - GuillaumeGomez:no-crate-filter, r=QuietMisdreavusbors-5/+15
Add no-crate filter option on rustdoc @onur asked me about it so here it is! r? @QuietMisdreavus
2018-12-27Simplify foreign type rendering.John Heitmann-51/+19
Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans. Reduces element count on std::iter::Iterator by 30%.