about summary refs log tree commit diff
path: root/src/librustdoc/html/markdown.rs
AgeCommit message (Collapse)AuthorLines
2019-09-13Move Toc printing from fmt::DisplayMark Rousskov-1/+1
2019-09-10Auto merge of #60387 - Goirad:test-expansion, r=ollie27bors-11/+32
Allow cross-compiling doctests This PR allows doctest to receive a --runtool argument, as well as possibly many --runtool-arg arguments, which are then used to run cross compiled doctests. Also, functionality has been added to rustdoc to allow it to skip testing doctests on a per-target basis, in the same way that compiletest does it. For example, tagging the doctest with "ignore-sgx" disables testing on any targets that contain "sgx". A plain "ignore" still skips testing on all targets. See [here](https://github.com/rust-lang/cargo/pull/6892) for the companion PR in the cargo project that extends functionality in Cargo so that it passes the appropriate parameters to rustdoc when cross compiling and testing doctests. Part of [#6460](https://github.com/rust-lang/cargo/issues/6460)
2019-09-07rustdoc: fix diagnostic with mixed code block stylesEric Huss-1/+4
2019-09-03added rustdoc book documentation, improved behavior when unstable flag not ↵Dario Gonzalez-10/+4
present
2019-09-03added feature gate enable-per-target-ignoresDario Gonzalez-6/+11
updated and augmented tests in html/markdown.rs
2019-09-03Added ability to crosscompile doctestsDario Gonzalez-6/+28
2019-08-26Shorten line during rendering instead of in markdownMark Rousskov-19/+1
2019-08-11Drop RefCell from IdMap in markdown renderingMark Rousskov-12/+7
2019-08-11Remove fmt::Display impls on Markdown structsMark Rousskov-31/+26
These impls prevent ergonomic use of the config (e.g., forcing us to use RefCell) despite all usecases for these structs only using their Display impls once.
2019-08-11Remove thread-local for playground configMark Rousskov-93/+110
2019-08-02librustdoc: Unconfigure tests during normal buildVadim Petrochenkov-24/+3
2019-06-16Fix tidyVadim Petrochenkov-16/+21
2019-06-16Separate librustcdoc modulechansuke-127/+1
2019-05-29upgrade rustdoc's `pulldown-cmark` to 0.5.2Andy Russell-5/+5
Fixes #60482.
2019-05-06update rustdoc doc testQuietMisdreavus-1/+5
2019-05-06update rustdoc unit testsQuietMisdreavus-4/+7
2019-05-06set the default edition when pre-parsing a doctestQuietMisdreavus-25/+29
2019-04-22upgrade rustdoc's pulldown-cmark to 0.4.1Andy Russell-80/+37
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-13/+13
2019-02-10rustc: doc commentsAlexander Regueiro-5/+5
2019-01-14rustdoc: check code block syntax in early passAndy Russell-0/+109
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-13Split on words insteadGuillaume Gomez-2/+16
2018-12-11Remove unneeded extra chars to reduce search-index sizeGuillaume Gomez-1/+5
2018-11-10Remove short doc where it starts with a codeblockGuillaume Gomez-22/+28
2018-11-04add Debug impls for the Options structsQuietMisdreavus-1/+1
2018-11-02swap uses of Matches with pre-parsed argsQuietMisdreavus-1/+1
2018-10-09Add lint for doc without codeblocksGuillaume Gomez-2/+4
2018-09-20Add a documentation banner for edition specific codePhilip Munksgaard-13/+44
2018-09-19Add support for running doc test in specific editionPhilip Munksgaard-18/+32
2018-08-28Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.Eduard-Mihai Burtescu-5/+6
2018-08-07Avoid unnecessary pattern matching against Option and Resultljedrz-1/+1
2018-07-31Cleanup highlighting codeMark Rousskov-1/+0
Removes some unused code and de-publicizes structs
2018-07-31Remove global derive_id and reset_ids functionsMark Rousskov-49/+105
Previously these functions relied on TLS but we can instead thread the relevant state through explicitly.
2018-07-31Format code for easier editingMark Rousskov-6/+5
2018-07-31Further extract error code switchMark Rousskov-27/+54
Removes dependency on UnstableFeatures from markdown rendering
2018-07-31Remove dependency on error handling from find_testable_codeMark Rousskov-8/+13
2018-07-31Provide test configuration through structMark Rousskov-15/+10
This is far more sound than passing many different arguments of the same type.
2018-07-31Provide warnings for invalid code blocks in markdown filesMark Rousskov-5/+3
Previously we would only warn on Rust code but we can also do so when testing markdown (the diag::Handler is available).
2018-07-31Pull out nightly checking to edgesMark Rousskov-8/+7
Parsing the code block's LangString (```foo) previously checked itself to see if we were on nightly; that isn't the right place to do so. Move that check slightly outwards to better abstract LangString. (This is also an optimization as we avoid the costly environment variable load of RUSTC_BOOTSTRAP).
2018-07-27Prefer to_string() to format!()ljedrz-4/+4
2018-07-06Auto merge of #51861 - GuillaumeGomez:prevent-some-markdown-short-doc, ↵bors-7/+36
r=QuietMisdreavus Prevent some markdown transformation on short docblocks Before: <img width="1440" alt="screen shot 2018-06-28 at 01 46 01" src="https://user-images.githubusercontent.com/3050060/42005762-7d533bbe-7a76-11e8-8361-027886803399.png"> After: <img width="1440" alt="screen shot 2018-06-28 at 01 46 02" src="https://user-images.githubusercontent.com/3050060/42005768-81bd59a0-7a76-11e8-819b-9b4be72579d6.png"> This is only performed on short doc blocks, not on plain ones. Not all transformations are prevented (you still have a few like urls, code blocks, etc...). cc @nical r? @QuietMisdreavus
2018-06-28Prevent some markdown transformation on short docblocksGuillaume Gomez-7/+36
2018-06-26rustdoc codeblock hash escapeLucas Morales-10/+10
2018-06-03Show which line the link is coming from.kennytm-3/+22
2018-03-22Rollup merge of #49189 - GuillaumeGomez:fix-implied-shortcut-links, ↵kennytm-2/+2
r=QuietMisdreavus Fix automatic urls with backticks Fixes #49164. r? @QuietMisdreavus
2018-03-19Fix automatic urls with backticksGuillaume Gomez-2/+2
2018-03-18Add warning for invalid start of code blocks in rustdocGuillaume Gomez-1/+6
2018-03-16fix doctestQuietMisdreavus-1/+1
2018-02-21Rollup merge of #48382 - GuillaumeGomez:fix-rustdoc-test-panic, r=estebankGuillaume Gomez-12/+15
Fix rustdoc test ICE Fixes #48377. r? @QuietMisdreavus