| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-08-06 | rustdoc-search: account for numeric disambiguators on impls | Michael Howell | -1/+40 | |
| Fixes #128676 | ||||
| 2024-08-05 | Prevent clicking on a link or on a button to toggle the code example buttons ↵ | Guillaume Gomez | -0/+6 | |
| visibility | ||||
| 2024-08-05 | Update GUI tests for code example buttons | Guillaume Gomez | -56/+71 | |
| 2024-07-30 | Rollup merge of #128339 - GuillaumeGomez:click-code-example, r=notriddle | Matthias Krüger | -0/+21 | |
| [rustdoc] Make the buttons remain when code example is clicked Follow-up of https://github.com/rust-lang/rust/pull/125779. One current issue we have with "run" button and the newly added copy code button is that if you're on mobile devices, you can't use them. I took a look at how `mdbook` is handling it and when you click on a code example, they show the buttons. I think it's a really good idea as if you want to copy the code on your mobile device, you will click on it, showing the buttons. Feature can be tested [here](https://rustdoc.crud.net/imperio/click-code-example/foo/struct.Bar.html). r? `@notriddle` | ||||
| 2024-07-29 | Add rustdoc GUI test to check click on code examples | Guillaume Gomez | -0/+21 | |
| 2024-07-29 | rustdoc: properly handle path wrapping | Michael Howell | -1/+2 | |
| 2024-07-29 | rustdoc: use `<wbr>`-tolerant function to check text contents | Michael Howell | -33/+36 | |
| 2024-07-28 | Rollup merge of #125779 - GuillaumeGomez:copy-code, r=rustdoc-team | Guillaume Gomez | -4/+58 | |
| [rustdoc] Add copy code feature This PR adds a "copy code" to code blocks. Since this is a JS only feature, the HTML is generated with JS when the user hovers the code block to prevent generating DOM unless needed. Two things to note: 1. I voluntarily kept the current behaviour of the run button (only when hovering a code block with a mouse) so it doesn't do anything on mobile. I plan to send a follow-up where the buttons would "expandable" or something. Still need to think which approach would be the best. 2. I used a picture and not text like the run button to remain consistent with the "copy path" button. I'd also prefer for the run button to use a picture (like what is used in mdbook) but again, that's something to be discussed later on. The rendering looks like this:   It can be tested [here](https://guillaume-gomez.fr/rustdoc/bar/struct.Bar.html) (without the run button) and [here](https://guillaume-gomez.fr/rustdoc/foo/struct.Bar.html) (with the run button). Fixes #86851. r? ``@notriddle`` | ||||
| 2024-07-27 | Add rustdoc GUI test to check title with and without search | Guillaume Gomez | -0/+24 | |
| 2024-07-22 | Add regression test for items list size (#128023) | Guillaume Gomez | -0/+31 | |
| 2024-07-21 | Rollup merge of #128014 - GuillaumeGomez:stab-in-doc-blocks, r=notriddle | Jubilee | -6/+15 | |
| Fix stab display in doc blocks Went across this bug randomly:  With the fixed CSS:  r? ```@notriddle``` | ||||
| 2024-07-21 | Update `source-code-page-code-scroll.goml` GUI test | Guillaume Gomez | -2/+2 | |
| 2024-07-21 | Add regression test for stab display in doc blocks | Guillaume Gomez | -4/+13 | |
| 2024-07-19 | Add GUI test for trait bounds display | Guillaume Gomez | -0/+41 | |
| 2024-07-19 | Reduce width to ensure that the name is wider and thus still triggering the ↵ | Guillaume Gomez | -9/+13 | |
| scroll | ||||
| 2024-07-19 | Rollup merge of #127932 - notriddle:notriddle/current, r=GuillaumeGomez | Matthias Krüger | -0/+4 | |
| rustdoc: fix `current` class on sidebar modnav | Before | After | | -- | -- | |  |  | ||||
| 2024-07-18 | rustdoc: fix `current` class on sidebar modnav | Michael Howell | -0/+4 | |
| 2024-07-18 | Add test for size of items in the items list | Guillaume Gomez | -1/+6 | |
| 2024-07-18 | Unify UI between code block buttons and top buttons | Guillaume Gomez | -2/+2 | |
| 2024-07-18 | Make "copy code" button the same size as the "copy path" button | Guillaume Gomez | -2/+8 | |
| 2024-07-18 | Add rustdoc GUI test for new copy code feature | Guillaume Gomez | -0/+48 | |
| 2024-07-16 | rustdoc: add test cases for mile wide bar | Michael Howell | -0/+16 | |
| 2024-07-15 | rustdoc: make sidebar highlight cover whole click target | Michael Howell | -2/+2 | |
| 2024-07-15 | Add tests for new toggle on deref blocks | Guillaume Gomez | -0/+40 | |
| 2024-07-01 | rustdoc: click target for sidebar items flush left | Michael Howell | -1/+2 | |
| 2024-06-29 | Don't call `switch-theme` function | Guillaume Gomez | -2/+3 | |
| 2024-06-29 | Add back `help-page.goml` rustdoc GUI test | Guillaume Gomez | -0/+69 | |
| 2024-06-27 | Update browser-ui-test version to `0.18.0` | Guillaume Gomez | -2/+6 | |
| 2024-06-14 | Remove failing GUI test to stop blocking CI until it is fixed | Guillaume Gomez | -69/+0 | |
| 2024-05-07 | Rollup merge of #124738 - notriddle:notriddle/search-form-js, r=GuillaumeGomez | Matthias Krüger | -2/+2 | |
| rustdoc: dedup search form HTML This change constructs the search form HTML using JavaScript, instead of plain HTML. It uses a custom element because - the [parser]'s insert algorithm runs the connected callback synchronously, so we won't get layout jank - it requires very little HTML, so it's a real win in size [parser]: https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token This shrinks the standard library by about 60MiB, by my test. There should be no visible changes. Just use less disk space. | ||||
| 2024-05-05 | Add GUI regression test for setting's cog color | Guillaume Gomez | -1/+31 | |
| 2024-05-05 | Fix bad color for setting cog in ayu theme | Guillaume Gomez | -0/+1 | |
| 2024-05-05 | rustdoc: dedup search form HTML | Michael Howell | -2/+2 | |
| This change constructs the search form HTML using JavaScript, instead of plain HTML. It uses a custom element because - the [parser]'s insert algorithm runs the connected callback synchronously, so we won't get layout jank - it requires very little HTML, so it's a real win in size [parser]: https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token This shrinks the standard library by about 60MiB, by my test. | ||||
| 2024-04-23 | Rollup merge of #124197 - GuillaumeGomez:move-duplicated-code, r=notriddle | Matthias Krüger | -119/+89 | |
| Move duplicated code in functions in `tests/rustdoc-gui/notable-trait.goml` It also allowed me to add some new common test like: ``` assert-position: ( "//*[`@class='tooltip` popover']", {"x": |popover_x|} ) ``` r? `@notriddle` | ||||
| 2024-04-20 | Move duplicated code in functions in `tests/rustdoc-gui/notable-trait.goml` | Guillaume Gomez | -119/+89 | |
| 2024-04-17 | Add GUI test for copy path button | Guillaume Gomez | -0/+15 | |
| 2024-04-09 | rustdoc: update test cases | Michael Howell | -4/+4 | |
| 2024-04-08 | Make theme switching closer to reality | Guillaume Gomez | -20/+34 | |
| 2024-04-06 | Move `check-container-color`'s code into `check-search-color` function | Guillaume Gomez | -31/+19 | |
| 2024-04-06 | Move duplicated code into `check-search-color` function | Guillaume Gomez | -218/+98 | |
| 2024-04-06 | Move more common code into a function in ↵ | Guillaume Gomez | -30/+44 | |
| `tests/rustdoc-gui/search-result-color.goml` | ||||
| 2024-04-06 | Move `search-result-color.goml` common parts into a function | Guillaume Gomez | -69/+52 | |
| 2024-04-05 | Use `include` command to reduce code duplication | Guillaume Gomez | -150/+112 | |
| 2024-04-04 | Add regression test to ensure that even if JS is enabled but not working, a ↵ | Guillaume Gomez | -0/+9 | |
| theme will still get applied | ||||
| 2024-04-03 | Add GUI test to ensure there is always a theme applied if JS is disabled | Guillaume Gomez | -0/+5 | |
| 2024-04-02 | Remove redundant code comments | Guillaume Gomez | -72/+72 | |
| 2024-04-01 | Update to new browser-ui-test version | Guillaume Gomez | -248/+266 | |
| 2024-03-27 | chore: fix some comments | xiaoxiangxianzi | -1/+1 | |
| Signed-off-by: xiaoxiangxianzi <zhaoyizheng@outlook.com> | ||||
| 2024-02-22 | [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives | 许杰友 Jieyou Xu (Joe) | -4/+4 | |
| 2024-01-31 | Add regression test for #120471 to ensure that long crate name are handled ↵ | Guillaume Gomez | -2/+24 | |
| as expected on mobile | ||||
