rustdoc: make the help button a link to a page#103060
Conversation
|
Some changes occurred in HTML/CSS themes. A change occurred in the Ayu theme. cc @Cldfire Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha |
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @GuillaumeGomez (or someone else) soon. Please see the contribution instructions for more information. |
2f339cf to
e41dc6e
Compare
|
I'm not really convinced by this approach but I'll let it up to @jsha. I'm really curious to know what they think about it. Also: if we agree with this, it'll require two new GUI tests:
|
|
I haven't looked at the implementation but the idea is good! |
This allows you to open the help section in a new browser tab, which is a pretty reasonable thing to want for a documentation page.
e41dc6e to
ae4ad9a
Compare
|
Apart from the lint, looks all good to me. Can you regen the online version so we can confirm the help page is rendered correctly too please? |
|
@GuillaumeGomez I've changed the appearance of the help page to match the tweaks you made to the settings page. I've also made a change to both the settings and help event listeners so that holding a modifier key will trigger the browser's default behavior (this way, Ctrl-Click opens a new tab like it should). |
Oh nice! |
|
Looks good to me, thanks! @bors r+ rollup |
…GuillaumeGomez rustdoc: make the help button a link to a page This allows you to open the help section in a new browser tab, which is a pretty reasonable thing to want for a documentation page. Preview: http://notriddle.com/notriddle-rustdoc-demos/help-page/std/index.html
…r=notriddle Fix settings page Thanks to rust-lang#103060, I discovered that the settings page was badly rendered. This PR fixes it. Before:  After:  r? `@notriddle`
…GuillaumeGomez rustdoc: make the help button a link to a page This allows you to open the help section in a new browser tab, which is a pretty reasonable thing to want for a documentation page. Preview: http://notriddle.com/notriddle-rustdoc-demos/help-page/std/index.html
…r=notriddle Fix settings page Thanks to rust-lang#103060, I discovered that the settings page was badly rendered. This PR fixes it. Before:  After:  r? ``@notriddle``
|
Failed in rollup: #103099 (comment) |
…r=notriddle Fix settings page Thanks to rust-lang#103060, I discovered that the settings page was badly rendered. This PR fixes it. Before:  After:  r? ```@notriddle```
f0adacf to
8344481
Compare
|
Pretty sure I fixed it now with 8344481 |
|
@bors r+ rollup |
…GuillaumeGomez rustdoc: make the help button a link to a page This allows you to open the help section in a new browser tab, which is a pretty reasonable thing to want for a documentation page. Preview: http://notriddle.com/notriddle-rustdoc-demos/help-page/std/index.html
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#102857 (Add a regression test for rust-lang#39137) - rust-lang#102953 (Improve docs for `struct_lint_level` function.) - rust-lang#103060 (rustdoc: make the help button a link to a page) - rust-lang#103115 (Clean up anchors.goml rustdoc GUI test) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup

This allows you to open the help section in a new browser tab, which is a pretty reasonable thing to want for a documentation page.
Preview: http://notriddle.com/notriddle-rustdoc-demos/help-page/std/index.html