about summary refs log tree commit diff
path: root/src/librustdoc/html/highlight/fixtures
AgeCommit message (Collapse)AuthorLines
2024-02-28Add regression test for inclusion of whitespace characters in rustdoc ↵Guillaume Gomez-1/+1
highlighting
2023-12-01rustdoc: do not escape quotes in body textMichael Howell-5/+5
Escaping quote marks is only needed in attributes, not text. ```console $ du -hs doc-old/ doc-new/ 670M doc-old/ 669M doc-new/ ```
2022-10-31rustdoc: rename syntax highlighting CSS class `attribute` to `attr`Michael Howell-4/+4
Link classes use the abbreviation `attr`, so why shouldn't syntax highlighting?
2022-08-20Extend decoration test to detect regressionsGuillaume Gomez-1/+3
2022-08-20Update rustdoc testsGuillaume Gomez-9/+11
2022-08-14Update rustdoc testsGuillaume Gomez-31/+31
2022-08-11rustdoc: don't generate DOM element for operatorJacob Hoffman-Andrews-15/+15
In our source page highlighting, we were generating `<span class="op">` tags for all "operators", including e.g. `<` `>` around generic parameters, `*`, `&`. This contributed significantly to DOM size, but we don't actually style `.op` except in the ayu theme. Remove the styles for `.op` in ayu, and stop generating the `<span>`s. This reduces DOM size of an example page[1] from 265,938 HTML elements to 242,165 elements, a 9% reduction. [1]: https://doc.rust-lang.org/nightly/src/core/up/up/stdarch/crates/core_arch/src/x86/avx512f.rs.html
2021-10-25rustdoc: use better highlighting for *const, *mut, and &mutMichael Howell-2/+2
This generates more consistent HTML for these RefKeyWord combinations. Before: ![image](https://user-images.githubusercontent.com/1593513/138742752-7e00a3f7-4621-4c62-82d1-3e4c2ef503d1.png) After: ![image](https://user-images.githubusercontent.com/1593513/138743955-90abcdcd-fc88-4e2f-95bb-c1b1635c0001.png)
2021-10-23Rollup merge of #85833 - willcrichton:example-analyzer, r=jyn514Matthias Krüger-0/+2
Scrape code examples from examples/ directory for Rustdoc Adds support for the functionality described in https://github.com/rust-lang/rfcs/pull/3123 Matching changes to Cargo are here: https://github.com/rust-lang/cargo/pull/9525 Live demo here: https://willcrichton.net/example-analyzer/warp/trait.Filter.html#method.and
2021-10-08Change handling of spans in scrape examples, add test for highlight decorationsWill Crichton-0/+2
2021-10-04Make rustdoc not highlight `->` and `=>` as operatorsMichael Howell-4/+4
It was marking them up as `<span class="op">=</span><span class="op">&gt;</span>`, which is bloaty and wrong.
2021-08-06Add test for union keyword highlightingGuillaume Gomez-0/+16
2021-08-05Fix invalid generation of HTML in highlightGuillaume Gomez-0/+4
2021-08-05Update rustdoc testsGuillaume Gomez-1/+1
2021-04-08Add test for idents mergeGuillaume Gomez-0/+20
2021-04-02rustdoc: update macro highlight testsMichael Howell-4/+4
2020-11-15Add test to ensure that no DOS backline (\r\n) doesn't create extra backline ↵Guillaume Gomez-0/+3
in source rendering
2020-08-27Add expect test for rustdoc html highlightingAleksey Kladov-0/+43
It's a unit-test in a sense that it only checks syntax highlighting. However, the resulting HTML is written to disk and can be easily inspected in the browser. To update the test, run with `--bless` argument or set `UPDATE_EXPEC=1` env var