summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2016-04-07Make `hir::Visibility` non-copyable and add `ty::Visibility`Jeffrey Seyfried-17/+17
2016-04-06Auto merge of #32230 - GuillaumeGomez:extend_css, r=alexcrichtonbors-6/+32
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-2/+2
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-2/+2
2016-04-05Rollup merge of #32715 - nrc:rustdoc-highlight, r=cmrManish Goregaokar-26/+49
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-7/+37
2016-04-04rustdoc: factor out function for getting inner html of highlighted sourceNick Cameron-26/+49
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-101/+91
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-28Auto merge of #32461 - mitaa:rdoc-anchors, r=alexcrichtonbors-80/+116
rustdoc: Correct anchor for links to associated trait items fixes #28478 r? @alexcrichton
2016-03-27Don't initialize id-map when rendering md filesmitaa-7/+13
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-25Avoid page reload upon hitting "S" when browing in local modeNovotnik, Petr-2/+0
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-158/+155
2016-03-22try! -> ?Jorge Aparicio-394/+394
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-18Fix usability problem when browse document locallyYork Xiang-2/+6
2016-03-08rustdoc: correct src-link urlmitaa-1/+1
2016-03-06Auto merge of #31967 - mitaa:rdoc-refactor, r=alexcrichtonbors-260/+170
This is mostly cleanup of individual code bits and code reuse for `clean::Attribute` handling. The only change in behaviour should be that emitted sources are now being recorded and queried when trying to create src-links to local source-files. r? @alexcrichton
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-03-03Responsive layout correction.gohyda-3/+7
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-27Clearly separate code blocks from other blocksmitaa-1/+3
For summary descriptions we need the first paragraph (adjacent lines until a blank line) - but the rendered markdown of a code block did not leave a blank line in the html and was thus included in the summary line.
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-22Auto merge of #31715 - mitaa:rdoc-index-crate, r=alexcrichtonbors-111/+112
This allows to search for crates in documentation and simplifies the json serialization of the search-index. fixes #14077
2016-02-22Simplify search-index serializationmitaa-112/+94
2016-02-16Add crates to search-indexmitaa-9/+28
2016-02-16doc pages: add the ability to search unknown typesBrandon W Maister-4/+4
This enables `*` in all type positions in doc searches, which I often want in order to find functions that create or convert specific types (e.g. `* -> vec`) but I don't actually know what kinds of input they expect. I actually started working on this because of #31598, but I've wanted it several times when exploring new crates.
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-13Auto merge of #31596 - mitaa:rdoc_assoc_item, r=alexcrichtonbors-4/+4
2016-02-13Escape search-index item descriptionsmitaa-2/+2
The item descriptions are included verbatim in search results causing certain character sequences to misbehave.