about summary refs log tree commit diff
path: root/src/librustdoc/html/highlight/fixtures/sample.html
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-4/+4
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-20Update rustdoc testsGuillaume Gomez-7/+8
2022-08-14Update rustdoc testsGuillaume Gomez-19/+19
2022-08-11rustdoc: don't generate DOM element for operatorJacob Hoffman-Andrews-10/+10
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-04Make rustdoc not highlight `->` and `=>` as operatorsMichael Howell-3/+3
It was marking them up as `<span class="op">=</span><span class="op">&gt;</span>`, which is bloaty and wrong.
2021-08-05Update rustdoc testsGuillaume Gomez-1/+1
2021-04-08Add test for idents mergeGuillaume Gomez-0/+10
2021-04-02rustdoc: update macro highlight testsMichael Howell-3/+3
2020-08-27Add expect test for rustdoc html highlightingAleksey Kladov-0/+27
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