<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustdoc/html/static/js/source-script.js, branch 1.68.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.68.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.68.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-12-15T23:29:52+00:00</updated>
<entry>
<title>rustdoc: name the source page sidebar-toggle `#src-sidebar-toggle`</title>
<updated>2022-12-15T23:29:52+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2022-12-15T23:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a84483eb59ac7e42998ade7ee1cf3456bed024ee'/>
<id>urn:sha1:a84483eb59ac7e42998ade7ee1cf3456bed024ee</id>
<content type='text'>
The old name doesn't get across where it's really supposed to be used.
</content>
</entry>
<entry>
<title>rustdoc: change `.src-line-numbers &gt; span` to `.src-line-numbers &gt; a`</title>
<updated>2022-10-31T20:59:52+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2022-10-27T18:16:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=07bb2f701e5bae0da724068bbce1920458df9cda'/>
<id>urn:sha1:07bb2f701e5bae0da724068bbce1920458df9cda</id>
<content type='text'>
This allows people to treat them like real links, such as right-click to
copy URL, and makes the line numbers in a scraped example work at all,
when before this commit was added, they had the clickable pointer cursor
but did not actually do anything when clicked.
</content>
</entry>
<entry>
<title>rustdoc: factor JS mobile scroll lock into its own function</title>
<updated>2022-10-17T18:44:02+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2022-10-17T18:41:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3932b2c21d5e2a8184739eb41df7501929f70194'/>
<id>urn:sha1:3932b2c21d5e2a8184739eb41df7501929f70194</id>
<content type='text'>
https://github.com/rust-lang/rust/pull/98775#issuecomment-1172728308
</content>
</entry>
<entry>
<title>rustdoc: give `.line-number` / `.line-numbers` meaningful names</title>
<updated>2022-09-26T18:48:03+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2022-09-26T17:50:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b97831af756b0b1dd7c75f1f5c35436b2424663'/>
<id>urn:sha1:0b97831af756b0b1dd7c75f1f5c35436b2424663</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #98775 - notriddle:notriddle/mobile-sidebar-scroll-lock, r=jsha</title>
<updated>2022-08-09T22:00:23+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-08-09T22:00:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=02fc0faa9a9165d8ac73385a765a33945cbb8641'/>
<id>urn:sha1:02fc0faa9a9165d8ac73385a765a33945cbb8641</id>
<content type='text'>
rustdoc: improve scroll locking in the rustdoc mobile sidebars

This PR prevents the main content area from scrolling while the mobile sidebar is open on documentation pages (porting the scroll locking behavior from the source sidebar to the regular sidebar), and also fixes some bad behavior where opening a "mobile" sidebar, and growing the viewport so that the "desktop" mode without scroll locking is activated, could potentially leave the page stuck.

This does not affect the behavior on larger screens. Only small ones, where the sidebar covers up the main content.

Split out from #98772
</content>
</entry>
<entry>
<title>rustdoc: use a more compact encoding for source-files.js</title>
<updated>2022-08-02T20:24:34+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2022-08-02T20:24:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=09a3dfc351955999953195aad0706304acf1ef1a'/>
<id>urn:sha1:09a3dfc351955999953195aad0706304acf1ef1a</id>
<content type='text'>
This reduces the compiler-doc file from 40K to 36K, a 10% reduction in size.
</content>
</entry>
<entry>
<title>Fix auto-expand of trees in source code page sidebar</title>
<updated>2022-07-17T12:11:45+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-07-17T12:11:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3024d399a2a72e5724650dbdd8bfa32642e99805'/>
<id>urn:sha1:3024d399a2a72e5724650dbdd8bfa32642e99805</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc: improve scroll locking in the rustdoc mobile sidebars</title>
<updated>2022-07-05T18:12:18+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2022-07-01T00:28:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b60bc64087e130f30e3bc095a3ef9e0c1790fef'/>
<id>urn:sha1:6b60bc64087e130f30e3bc095a3ef9e0c1790fef</id>
<content type='text'>
This commit ports the scroll locking behavior from the source sidebar to the
regular sidebar, and also fixes some bad behavior where opening a "mobile"
sidebar, and growing the viewport so that the "desktop" mode without scroll
locking is activated, could potentially leave the page stuck.

This does not affect the behavior on larger screens. Only small ones, where
the sidebar covers up the main content.
</content>
</entry>
<entry>
<title>Rollup merge of #98776 - notriddle:notriddle/mobile-sidebar-auto-close, r=GuillaumeGomez</title>
<updated>2022-07-05T10:34:33+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>99973273+Dylan-DPC@users.noreply.github.com</email>
</author>
<published>2022-07-05T10:34:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c2613a5c7fc1e6582eae12ea24da7bf08c16ad43'/>
<id>urn:sha1:c2613a5c7fc1e6582eae12ea24da7bf08c16ad43</id>
<content type='text'>
rustdoc: improve click behavior of the source code mobile full-screen "sidebar"

On desktop, if you open the source code sidebar, it stays open even when you move from page to page. It used to do the same thing on mobile, but I think that's stupid. Since the file list fills the entire screen on mobile, and you can't really do anything with the currently selected file other than dismiss the "sidebar" to look at it, it's safe to assume that anybody who clicks a file in that list probably wants the list to go away so they can see it.

Split out separately from #98772
</content>
</entry>
<entry>
<title>Rollup merge of #98774 - notriddle:notriddle/source-code-sidebar-button, r=GuillaumeGomez</title>
<updated>2022-07-04T04:08:08+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-07-04T04:08:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=47456ad4ef7c011cef4274439df555cc7b3c2911'/>
<id>urn:sha1:47456ad4ef7c011cef4274439df555cc7b3c2911</id>
<content type='text'>
rustdoc: make source sidebar toggle a real button

This fixes tab focus, so that you can open and close the sidebar from keyboard.

This should cause no visible change in appearance at all. The only way you'd know anything different is if you tried to use keyboard controls to open the source code file navigation sidebar.

Separated out from #98772
</content>
</entry>
</feed>
