summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2016-05-21Auto merge of #33765 - alex-ozdemir:master, r=Manishearthbors-3/+11
Added a `rustdoc` shortcut for collapse/expand all Now when the user presses the "+" key all sections will collapse/expand. Also added a note to the help screen which describes this behavior. This required increasing the height of the help screen.
2016-05-21Rollup merge of #33679 - Manishearth:rustdoc-readmore-impls, r=alexcrichtonManish Goregaokar-12/+43
rustdoc: Add doc snippets for trait impls, with a read more link The read more link only appears if the documentation is more than one line long. ![screenshot from 2016-05-17 06 54 14](https://cloud.githubusercontent.com/assets/1617736/15308544/4c2ba0ce-1bfc-11e6-9add-29de8dc7ac6e.png) It currently does not appear on non-defaulted methods, since you can document them directly. I could make it so that default documentation gets forwarded if regular docs don't exist. Fixes #33672 r? @alexcrichton cc @steveklabnik
2016-05-20Added a `rustdoc` shortcut for collapse/expand allAlex Ozdemir-3/+11
Now when the user presses the "+" key all sections will collapse/expand. Also added a note to the help screen which describes this behavior.
2016-05-20Update testsManish Goregaokar-15/+17
2016-05-19Rollup merge of #33705 - lqd:rustdoc-version-tooltip, r=GuillaumeGomezManish Goregaokar-2/+3
rustdoc: Make the #[stable(since)] version attribute clearer with a tooltip Rustdoc's new 'since' version placement only shows the version number in which the item was marked stable. This gains space but might make the meaning of this version string less clear in the docs, so I tried to bring some explicitness in a tooltip.
2016-05-19Make the #[stable(since)] version attribute clearer with a tooltipRémy Rakic-2/+3
2016-05-18Move read more link to same lineManish Goregaokar-5/+6
2016-05-18rustdoc: Support short doc fallback for non-default itemsManish Goregaokar-9/+25
2016-05-18rustdoc: Add doc snippets for trait impls, with a read more linkManish Goregaokar-0/+12
Fixes #33672
2016-05-18Rollup merge of #33673 - GuillaumeGomez:fix-selected-item-style, r=steveklabnikManish Goregaokar-0/+4
Fix selected item background style r? @steveklabnik
2016-05-16Fix selected item background styleGuillaume Gomez-0/+4
2016-05-15Auto merge of #33505 - petrochenkov:self, r=nrcbors-56/+36
Remove ExplicitSelf from HIR `self` argument is already kept in the argument list and can be retrieved from there if necessary, so there's no need for the duplication. The same changes can be applied to AST, I'll make them in the next breaking batch. The first commit also improves parsing of method declarations and fixes https://github.com/rust-lang/rust/issues/33413. r? @eddyb
2016-05-14Remove ExplicitSelf from HIRVadim Petrochenkov-56/+36
2016-05-12rustdoc: Fix missing type parameters on implsOliver Middleton-1/+7
2016-05-10Improve "since" tag placementGuillaume Gomez-3/+9
2016-05-09Rollup merge of #33509 - birkenfeld:issue-30219, r=alexcrichtonManish Goregaokar-1/+1
rustdoc: fix emitting duplicate implementors in .js files The collect() fn checks for double quotes; use them here as well. Fixes: #30219
2016-05-09Rollup merge of #33431 - GuillaumeGomez:issue-30416, r=steveklabnikManish Goregaokar-7/+48
Update CSS for future rustdoc merge cc #33382 r? @steveklabnik cc @Manishearth cc @birkenfeld
2016-05-09rustdoc: fix emitting duplicate implementors in .js filesGeorg Brandl-1/+1
The collect() fn checks for double quotes; use them here as well. Fixes: #30219
2016-05-08Auto merge of #33091 - sanxiyn:unused-trait-import-3, r=nrcbors-1/+0
Warn unused trait imports, rebased Rebase of #30021. Fix #25730.
2016-05-07Rollup merge of #33382 - birkenfeld:issue-30416, r=alexcrichtonSteve Klabnik-39/+59
rustdoc: add "src" links to individual impls Since these impls can be scattered around quite a bit, it is nice to be able to jump to the location where individual methods and trait impls are defined. NOTE: this needs an update to the CSS, which I'd like to leave for whoever is the "rustdoc frontend champion". The new [src] links are currently too large and bold. Also, the interaction with the "since version X" annotations is not good. Fixes: #30416
2016-05-07Auto merge of #33328 - nrc:highlight-api, r=alexcrichtonbors-105/+245
rustdoc: refactor rustdoc syntax highlighting for a more flexible API Clients can now use the rustdoc syntax highlighter to classify tokens, then use that info to put together there own HTML (or whatever), rather than just having static HTML output.
2016-05-06rustdoc: add "src" links to individual implsGeorg Brandl-39/+59
Since these impls can be scattered around quite a bit, it is nice to be able to jump to the location where individual methods and trait impls are defined. Fixes: #30416
2016-05-05Improve rustdoc css of "source" and "since" elementsggomez-7/+43
2016-05-06Update CSS for future rustdoc mergeGuillaume Gomez-0/+5
2016-05-04rustdoc: refactor rustdoc syntax highlighting for a more flexible APINick Cameron-105/+245
Clients can now use the rustdoc syntax highlighter to classify tokens, then use that info to put together there own HTML (or whatever), rather than just having static HTML output.
2016-05-03rustdoc: HTML-escape Rust code (from constants)Georg Brandl-3/+4
Especially in cases like the one in the test file, this can blow up the docs big time if string constants in the code contain HTML. But also other constants can contain special chars (e.g. `&` as an operator in constant expressions).
2016-05-03Remove unused trait imports flagged by lintSeo Sanghyeon-1/+0
2016-04-27Auto merge of #33151 - ollie27:rustdoc_abi, r=alexcrichtonbors-12/+3
rustdoc: Cleanup ABI rendering Use a common method for rendering `extern "<abi>"`. This now consistently shows `extern fn` rather than `extern "C" fn`.
2016-04-27Auto merge of #33199 - mitaa:tokenize-responsibly, r=nrcbors-7/+19
Make some fatal lexer errors recoverable I've kept the changes to a minimum since I'm not really sure if this approach is a acceptable. fixes #12834 cc @nrc
2016-04-27Make some fatal lexer errors recoverablemitaa-7/+19
2016-04-27rustdoc: Render `extern fn` instead of `extern "C" fn`Oliver Middleton-0/+1
2016-04-26Auto merge of #33191 - alexcrichton:rustdoc-create-dir-all-racy, r=steveklabnikbors-6/+9
rustdoc: Handle concurrent mkdir requests It's likely that `rustdoc` as a tool is run concurrently in the same output (e.g. documenting multiple crates as Cargo does), in which case it needs to handle concurrent calls to `fs::create_dir`.
2016-04-26Rollup merge of #33196 - mitaa:rdoc-crate-links, r=alexcrichtonManish Goregaokar-11/+29
rustdoc: Linkify extern crates fixes #33178 r? @alexcrichton
2016-04-26Rollup merge of #33194 - mitaa:rdoc-a, r=alexcrichtonManish Goregaokar-3/+4
rustdoc: Improve accessibility of rustdoc pages fixes #33131 r? @alexcrichton
2016-04-26Rollup merge of #33160 - euclio:rustdoc-unstable-deprecated, r=alexcrichtonManish Goregaokar-29/+38
show unstable status for deprecated items Fixes #32374.
2016-04-26Rollup merge of #33133 - mitaa:rdoc-smth-smth-impl, r=alexcrichtonManish Goregaokar-3/+5
rustdoc: inline all the impls This used to be done to avoid inlining impls referencing private items, but is now unnecessary since we actually check that impls do not reference non-doc-reachable items. fixes #32881 fixes #33025 fixes #33113 r? @alexcrichton
2016-04-25Linkify extern crates on rustdoc pagesmitaa-11/+29
2016-04-25Improve accessibility of rustdoc pagesmitaa-3/+4
2016-04-24rustdoc: Handle concurrent mkdir requestsAlex Crichton-6/+9
It's likely that `rustdoc` as a tool is run concurrently in the same output (e.g. documenting multiple crates as Cargo does), in which case it needs to handle concurrent calls to `fs::create_dir`.
2016-04-24Check reachability for inlined extern links toomitaa-3/+5
An item is inlined and recorded as inlined even if it is `doc(hidden)`, leading to unchecked external links.
2016-04-24syntax: Get rid of token::IdentStyleVadim Petrochenkov-1/+1
2016-04-22show unstable status for deprecated itemsAndy Russell-29/+38
2016-04-22Only record the same impl oncemitaa-24/+38
Due to inlining it is possible to visit the same module multiple times during `<Cache as DocFolder>::fold_crate`, so we keep track of the modules we've already visited.
2016-04-22rustdoc: Cleanup ABI renderingOliver Middleton-13/+3
Use a common method for rendering `extern "<abi>"`. This now consistently shows `extern "C" fn` rather than just `extern fn`.
2016-04-19Auto merge of #33002 - mitaa:rdoc-cross-impls, r=alexcrichtonbors-21/+37
rustdoc: refine cross-crate impl inlining This changes the current rule that impls within `doc(hidden)` modules aren't inlined, to only inlining impls where the implemented trait and type are reachable in documentation. fixes #14586 fixes #31948 .. and also applies the reachability checking to cross-crate links. fixes #28480 r? @alexcrichton
2016-04-19Auto merge of #32985 - caipre:rustdoc-disambiguate-impl-anchors, r=alexcrichtonbors-14/+26
rustdoc: Disambiguate anchors Closes https://github.com/rust-lang/rust/issues/32890
2016-04-18Rollup merge of #32558 - sanxiyn:rustdoc-self-link, r=steveklabnikSteve Klabnik-10/+27
Avoid linking to itself in implementors section of trait page Fix #32474.
2016-04-17rustdoc: Disambiguate anchors for assoc item implsNick Platt-14/+26
2016-04-18Reachability check cross-crate linksmitaa-4/+9
2016-04-18Perform doc-reachability check for inlined implsmitaa-0/+3
This changes the current rule that impls within `doc(hidden)` modules aren't inlined, to only inlining impls where the implemented trait and type are reachable in documentation.