summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
AgeCommit message (Collapse)AuthorLines
2016-04-07Make `hir::Visibility` non-copyable and add `ty::Visibility`Jeffrey Seyfried-11/+11
2016-04-06Auto merge of #32230 - GuillaumeGomez:extend_css, r=alexcrichtonbors-4/+22
Add --extend-css option to rustdoc Fixes #32223 r? @brson
2016-04-06Update to last rustdoc versionGuillaume Gomez-5/+5
2016-04-06rustc: move middle::{def,def_id,pat_util} to hir.Eduard Burtescu-1/+1
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-1/+1
2016-04-05Rollup merge of #32715 - nrc:rustdoc-highlight, r=cmrManish Goregaokar-4/+4
rustdoc: factor out function for getting inner html of highlighted source
2016-04-05Centralize nightly compiler flags handlingGuillaume Gomez-4/+0
2016-04-05Add --extend-css option to rustdocGuillaume Gomez-5/+27
2016-04-04rustdoc: factor out function for getting inner html of highlighted sourceNick Cameron-4/+4
2016-04-02Slim down `rustdoc::html::render::Context`mitaa-40/+47
Like the comment on `Context` explains, `Context` is supposed to be lightweight, so we're putting everything that's immutable after creation of the Context behind an `Arc<SharedContext>`.
2016-04-02Refactor `HiddenStructField` into `StrippedItem`mitaa-26/+14
2016-04-02Make the rendering process less pass-awaremitaa-100/+84
Instead of hardcoding knowledge about the strip-private pass into the rendering process we represent (some) stripped items as `ItemEnum::StrippedItem`. Rustdoc will, for example, generate redirect pages for public items contained in private modules which have been re-exported to somewhere externally reachable - this will now not only work for the `strip-private` pass, but for other passes as well, such as the `strip-hidden` pass.
2016-03-27Don't initialize id-map when rendering md filesmitaa-4/+10
Adding these "known" values to the table of used ids is only required when embedding markdown into a rustdoc html page and may yield unexpected results when rendering a standalone `*.md` file.
2016-03-27Linkify associated types and constantsmitaa-17/+41
2016-03-27Don't hardcode item-type anchor idsmitaa-13/+17
These should always correspond to the values in `ItemType::to_static_str`
2016-03-27Correct anchor for links to associated trait itemsmitaa-45/+47
2016-03-23Auto merge of #32454 - eddyb:rollup, r=eddybbors-2/+3
Rollup of 11 pull requests - Successful merges: #32404, #32420, #32423, #32425, #32429, #32430, #32431, #32434, #32437, #32441, #32443 - Failed merges:
2016-03-22fix alignmentJorge Aparicio-137/+136
2016-03-22try! -> ?Jorge Aparicio-283/+283
Automated conversion using the untry tool [1] and the following command: ``` $ find -name '*.rs' -type f | xargs untry ``` at the root of the Rust repo. [1]: https://github.com/japaric/untry
2016-03-22Consider `doc(no_inline)` in crate-local inliningmitaa-2/+3
2016-03-08rustdoc: correct src-link urlmitaa-1/+1
2016-03-04This doesn't seem necessary?mitaa-1/+1
2016-03-04Use const instead of functionmitaa-5/+3
2016-03-04Use `Item::is_*` methods consistentlymitaa-18/+6
2016-03-04Refactor rustdocs attribute handlingmitaa-38/+9
2016-03-04Simplify `if let`/`match` expressionsmitaa-172/+134
2016-03-03Refactor src-link creation for local sourcesmitaa-41/+32
Since we emit the sources beforhand we actually **know** whether we can safely create src-links to these files and where they are stored.
2016-02-27Correct plain-summary-linemitaa-2/+2
For plaintext we don't actually need to render the Markdown before shortening the string. (and this may have led to wrong output)
2016-02-25Rollup merge of #31837 - mitaa:rdoc-inherent-assoc, r=alexcrichtonManish Goregaokar-4/+11
This effectively only records associated items from either inherent impls or trait definitions in the search-index. fixes #31808 r? @alexcrichton
2016-02-25Rollup merge of #31835 - mitaa:rdoc-global-src, r=alexcrichtonManish Goregaokar-8/+11
fixes #26995 r? @alexcrichton
2016-02-24Fix source-links for files with absolute-pathsmitaa-7/+8
`clean_srcpath` tries to make the source-path relative to `src_root`, but this didn't work since `src_root` itself wasn't absolute.
2016-02-24Allow creation of src-links for device filesmitaa-1/+3
2016-02-23Show associated types in inherent implsmitaa-6/+3
2016-02-23Don't show associated consts from trait implsmitaa-0/+10
2016-02-23Don't record self parameter for static methodsmitaa-6/+7
2016-02-22Simplify search-index serializationmitaa-112/+94
2016-02-16Add crates to search-indexmitaa-8/+14
2016-02-14Auto merge of #31626 - mitaa:rdoc-srch-escape, r=alexcrichtonbors-2/+2
Maybe they should be Markdown rendered instead, though that doesn't really seem to work all that well. fixes #31059 r? @alexcrichton
2016-02-14Auto merge of #31614 - mitaa:rdoc_locitem_extmac, r=alexcrichtonbors-5/+11
fixes #26606 r? @alexcrichton
2016-02-13Auto merge of #31602 - mitaa:rdoc_doc_shorter, r=alexcrichtonbors-3/+4
fixes #25787 fixes #30366 r? @alexcrichton
2016-02-13Escape search-index item descriptionsmitaa-2/+2
The item descriptions are included verbatim in search results causing certain character sequences to misbehave.
2016-02-12Omit src-links for items from extern macrosmitaa-5/+11
If the span of a local item points into an external macro its source-file will be bogus.
2016-02-12Shorten docstrings after Markdown renderingmitaa-3/+4
2016-02-12Fix associated item identifiersmitaa-4/+4
Search results use the mapping found in `ItemType::to_static_str` for the identifier, which could not be found on the page in the case of associated items.
2016-02-09Rustdoc - display `since` version for stable itemsWesley Wiser-27/+71
Fixes #27607
2016-02-01Decide to hide constness only in fn/method rendersBrandon W Maister-2/+12
ConstnessSpace has no knowledge of the type of item it's modifying, so hide the constness a level up.
2016-01-16std: Stabilize APIs for the 1.7 releaseAlex Crichton-1/+1
This commit stabilizes and deprecates the FCP (final comment period) APIs for the upcoming 1.7 beta release. The specific APIs which changed were: Stabilized * `Path::strip_prefix` (renamed from `relative_from`) * `path::StripPrefixError` (new error type returned from `strip_prefix`) * `Ipv4Addr::is_loopback` * `Ipv4Addr::is_private` * `Ipv4Addr::is_link_local` * `Ipv4Addr::is_multicast` * `Ipv4Addr::is_broadcast` * `Ipv4Addr::is_documentation` * `Ipv6Addr::is_unspecified` * `Ipv6Addr::is_loopback` * `Ipv6Addr::is_unique_local` * `Ipv6Addr::is_multicast` * `Vec::as_slice` * `Vec::as_mut_slice` * `String::as_str` * `String::as_mut_str` * `<[T]>::clone_from_slice` - the `usize` return value is removed * `<[T]>::sort_by_key` * `i32::checked_rem` (and other signed types) * `i32::checked_neg` (and other signed types) * `i32::checked_shl` (and other signed types) * `i32::checked_shr` (and other signed types) * `i32::saturating_mul` (and other signed types) * `i32::overflowing_add` (and other signed types) * `i32::overflowing_sub` (and other signed types) * `i32::overflowing_mul` (and other signed types) * `i32::overflowing_div` (and other signed types) * `i32::overflowing_rem` (and other signed types) * `i32::overflowing_neg` (and other signed types) * `i32::overflowing_shl` (and other signed types) * `i32::overflowing_shr` (and other signed types) * `u32::checked_rem` (and other unsigned types) * `u32::checked_neg` (and other unsigned types) * `u32::checked_shl` (and other unsigned types) * `u32::saturating_mul` (and other unsigned types) * `u32::overflowing_add` (and other unsigned types) * `u32::overflowing_sub` (and other unsigned types) * `u32::overflowing_mul` (and other unsigned types) * `u32::overflowing_div` (and other unsigned types) * `u32::overflowing_rem` (and other unsigned types) * `u32::overflowing_neg` (and other unsigned types) * `u32::overflowing_shl` (and other unsigned types) * `u32::overflowing_shr` (and other unsigned types) * `ffi::IntoStringError` * `CString::into_string` * `CString::into_bytes` * `CString::into_bytes_with_nul` * `From<CString> for Vec<u8>` * `From<CString> for Vec<u8>` * `IntoStringError::into_cstring` * `IntoStringError::utf8_error` * `Error for IntoStringError` Deprecated * `Path::relative_from` - renamed to `strip_prefix` * `Path::prefix` - use `components().next()` instead * `os::unix::fs` constants - moved to the `libc` crate * `fmt::{radix, Radix, RadixFmt}` - not used enough to stabilize * `IntoCow` - conflicts with `Into` and may come back later * `i32::{BITS, BYTES}` (and other integers) - not pulling their weight * `DebugTuple::formatter` - will be removed * `sync::Semaphore` - not used enough and confused with system semaphores Closes #23284 cc #27709 (still lots more methods though) Closes #27712 Closes #27722 Closes #27728 Closes #27735 Closes #27729 Closes #27755 Closes #27782 Closes #27798
2016-01-11rustdoc: remove dead link from issue-less unstable entries.Shmuale Mark-2/+2
2015-12-22Don't record the root module in the search indexmitaa-8/+10
2015-12-12Support `#[deprecated]` in rustdocVadim Petrochenkov-2/+22