<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/rustdoc-gui/src, branch 1.84.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.84.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.84.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-10-04T16:01:52+00:00</updated>
<entry>
<title>Add GUI regression test for #130622 and for #131223</title>
<updated>2024-10-04T16:01:52+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-10-03T16:09:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1c63ec9fa002980fb792d8630661e931ebf9ac06'/>
<id>urn:sha1:1c63ec9fa002980fb792d8630661e931ebf9ac06</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc: make the header show all three buttons</title>
<updated>2024-09-11T00:56:06+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2024-09-03T02:42:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5b1b2e97e36c4966b9c6c30d5679f6da76503fc7'/>
<id>urn:sha1:5b1b2e97e36c4966b9c6c30d5679f6da76503fc7</id>
<content type='text'>
This tweaks it to use less space for the breadcrumbs.
</content>
</entry>
<entry>
<title>rustdoc: redesign toolbar and disclosure widgets</title>
<updated>2024-09-11T00:56:05+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2024-08-25T06:11:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d05323c7b4ebeaeaffe3ea8e0d02a8b01db67ddd'/>
<id>urn:sha1:d05323c7b4ebeaeaffe3ea8e0d02a8b01db67ddd</id>
<content type='text'>
This adds labels to the icons and moves them away from the search box.

These changes are made together, because they work together, but are based on
several complaints:

* The [+/-] thing are a Reddit-ism. They don't look like buttons, but look
  like syntax
  &lt;https://rust-lang.zulipchat.com/#narrow/stream/266220-t-rustdoc/topic/More.20visual.20difference.20for.20the.20.2B.2F-.20.20Icons&gt;,
  &lt;https://github.com/rust-lang/rust/issues/59851&gt;
  (some of these are laundry lists with more suggestions, but they all
  mention [+/-] looking wrong)

* The settings, help, and summary buttons are also too hard to recognize
  &lt;https://lwn.net/Articles/987070/&gt;,
  &lt;https://github.com/rust-lang/rust/issues/90310&gt;,
  &lt;https://github.com/rust-lang/rust/issues/14475#issuecomment-274241997&gt;,
  &lt;https://internals.rust-lang.org/t/improve-rustdoc-design/12758&gt;
  ("Not all functionality is self-explanatory, for example the [+] button in
  the top right corner, the theme picker or the settings button.")

The toggle-all and toggle-individual buttons both need done at once, since we
want them to look like they go together. This changes them from both being
[+/-] to both being arrows.

Settings and Help are also migrated, so that the whole group can benefit from
being described using actual words.

Additionally, the Help button is only shown on SERPs, not all the time.
This is done for two major reasons:

* Most of what's in there is search-related. The things that aren't are
  keyboard commands, and the search box tells you about that anyway.
  Pressing &lt;kbd&gt;?&lt;/kbd&gt; will temporarily show the button and its popover.
* I'm trading it off by showing the help button, even on mobile.
  It's useful since you can use the search engine suggestions there.
* The three buttons were causing line wrapping on too many desktop layouts.
</content>
</entry>
<entry>
<title>Rollup merge of #129796 - GuillaumeGomez:unify-code-examples, r=notriddle</title>
<updated>2024-09-05T16:58:56+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-09-05T16:58:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9be97ae8e29b99a030a327cdb50e1997a4ff3470'/>
<id>urn:sha1:9be97ae8e29b99a030a327cdb50e1997a4ff3470</id>
<content type='text'>
Unify scraped examples with other code examples

Fixes #129763.

This first PR both fixes #129763 but also unifies buttons display for code examples:

![image](https://github.com/user-attachments/assets/c8475945-dcc3-4c25-8d7d-1659f85301c8)

You can test it [here](https://rustdoc.crud.net/imperio/unify-code-examples/doc/scrape_examples/fn.test.html) and [here](https://rustdoc.crud.net/imperio/unify-code-examples/doc/scrape_examples/fn.test_many.html).

I'm planning to send a follow-up to make the buttons generated in JS directly (or I can do it in this PR directly if you prefer).

cc ```@willcrichton```
r? ```@notriddle```
</content>
</entry>
<entry>
<title>Rollup merge of #127474 - tesuji:foldable-inline-derefs, r=t-rustdoc</title>
<updated>2024-09-02T02:19:27+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-09-02T02:19:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c90991db1759d0da7034146755c048d8e581d73c'/>
<id>urn:sha1:c90991db1759d0da7034146755c048d8e581d73c</id>
<content type='text'>
doc: Make block of inline Deref methods foldable

After:
![image](https://github.com/rust-lang/rust/assets/15225902/3e8ab320-dbf7-436f-9be0-d0ef82664663)
Before:
![image](https://github.com/rust-lang/rust/assets/15225902/f6f7635d-d4c3-437e-a2d9-147726287b05)

Fix  #127470.

Current status:
- [x] Bug when hovering over title "Methods from ...": The anchor sign $ overlaps with `[-]`: https://github.com/rust-lang/rust/pull/127474#issuecomment-2222930038
    =&gt; Fixed by https://github.com/rust-lang/rust/pull/127474#issuecomment-2228886292
</content>
</entry>
<entry>
<title>Add missing CSS variables in GUI test for `custom-theme.css`</title>
<updated>2024-09-01T18:49:41+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-09-01T13:02:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4825fb198f9abb58ddc877d9bbf49c8834a68a68'/>
<id>urn:sha1:4825fb198f9abb58ddc877d9bbf49c8834a68a68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc-search: account for numeric disambiguators on impls</title>
<updated>2024-08-06T14:36:12+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2024-08-06T14:36:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3a183256ad74eadc3c96ed337b70c1ad8897035f'/>
<id>urn:sha1:3a183256ad74eadc3c96ed337b70c1ad8897035f</id>
<content type='text'>
Fixes #128676
</content>
</entry>
<entry>
<title>Add regression test for items list size (#128023)</title>
<updated>2024-07-22T09:33:03+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-07-22T09:33:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7de26684e894d389d783906516a35bf21bb37382'/>
<id>urn:sha1:7de26684e894d389d783906516a35bf21bb37382</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #128014 - GuillaumeGomez:stab-in-doc-blocks, r=notriddle</title>
<updated>2024-07-22T00:44:28+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2024-07-22T00:44:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5bd75258566c56d56d6c43c33fbc3321b462a130'/>
<id>urn:sha1:5bd75258566c56d56d6c43c33fbc3321b462a130</id>
<content type='text'>
Fix stab display in doc blocks

Went across this bug randomly:

![Screenshot from 2024-07-20 22-09-49](https://github.com/user-attachments/assets/89fdf427-b00e-4fcb-9d57-078bcb1bacd9)

With the fixed CSS:

![Screenshot from 2024-07-20 22-10-14](https://github.com/user-attachments/assets/eda9a1a6-6a12-408f-bd3a-25bb3397d163)

r? ```@notriddle```
</content>
</entry>
<entry>
<title>Add regression test for stab display in doc blocks</title>
<updated>2024-07-21T09:52:24+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-07-20T20:28:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e4d701b1d3f1cc04574c9b92abfa33e2a4c0e9c3'/>
<id>urn:sha1:e4d701b1d3f1cc04574c9b92abfa33e2a4c0e9c3</id>
<content type='text'>
</content>
</entry>
</feed>
