Uh oh!
There was an error while loading. Please reload this page.
Switch settings menu to full js - #93097
Conversation
rust-highfive
commented
Jan 19, 2022
Some changes occurred in HTML/CSS/JS. |
jsha
commented
Jan 19, 2022
Some early feedback from testing: This should generate a page navigation event, like searching does, so that when you hit the "back" button in your browser you go back to the page you were on. The page navigation event should make the URL |
This comment has been minimized.
This comment has been minimized.
GuillaumeGomez
commented
Jan 19, 2022
That'd mean that we'd need to have a |
47262e1 to
38cca7eCompareUh oh!
There was an error while loading. Please reload this page.
jsha
commented
Jan 19, 2022
No, I'm proposing to have one settings.html per documentation instance, just like we have today - and in exactly the same place. |
Uh oh!
There was an error while loading. Please reload this page.
GuillaumeGomez
commented
Jan 19, 2022
I'm not a big fan of the idea: it means duplicating where the settings are set and generated... I think it's extra work for not much gain. |
jsha
commented
Jan 19, 2022
I think you misunderstand me. I'm not proposing that we should generate the settings into HTML. I'm proposing that we have HTML that is an empty shell, and just calls |
This comment has been minimized.
This comment has been minimized.
GuillaumeGomez
commented
Jan 19, 2022
Oh indeed. Great idea! |
bors
commented
Jan 20, 2022
☔ The latest upstream changes (presumably #93085) made this pull request unmergeable. Please resolve the merge conflicts. |
38cca7e to
6f6e078Compare
This comment has been minimized.
This comment has been minimized.
bors
commented
Jan 23, 2022
☔ The latest upstream changes (presumably #93220) made this pull request unmergeable. Please resolve the merge conflicts. |
6f6e078 to
9630fe7Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
780d3e8 to
cb02defComparejsha
commented
Apr 28, 2022
This needs another merge deconflict. |
jsha
commented
Apr 28, 2022
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
GuillaumeGomez
commented
Apr 28, 2022
Thanks for the review! I'll update it tomorrow. |
fe99791 to
2ac2fbbCompareGuillaumeGomez
commented
Apr 29, 2022
Updated! |
bors
commented
Apr 30, 2022
☔ The latest upstream changes (presumably #96566) made this pull request unmergeable. Please resolve the merge conflicts. |
0d2c340 to
2f074deCompareGuillaumeGomez
commented
Apr 30, 2022
Fixed merge conflicts. :) |
jsha
commented
May 1, 2022
This still has "Preferred dark theme" above "Preferred light theme." It should be the other way around, to match the current UI. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
* Improve code. * Fix some documentation argument types. * Make settings order the same as before this PR. * Change timeout to 0 so that browser will render it as fast as possible.
GuillaumeGomez
commented
May 1, 2022
Updated and uploaded updated version. :) |
jsha
commented
May 2, 2022
@bors r+ rollup |
bors
commented
May 2, 2022
📌 Commit 73688e4 has been approved by |
GuillaumeGomez
commented
May 2, 2022
🎉 |
Switch settings menu to full js Since the settings can only be set when the JS is enabled, it's not really a problem. It also fixes a debate we had around the themes not being accessible easily before.  You can test it [here](https://rustdoc.crud.net/imperio/settings-js/doc/foo/index.html). r? `@jsha`
Rollup of 8 pull requests Successful merges: - rust-lang#93097 (Switch settings menu to full js) - rust-lang#96587 (Refactor the WriteBackendMethods and ExtraBackendMethods traits) - rust-lang#96589 (Use source callsite in check_argument_types suggestion) - rust-lang#96599 (Update `RValue::Discriminant` documentation) - rust-lang#96614 (Add a regression test for rust-lang#92305) - rust-lang#96629 (Fix invalid keyword order for function declarations) - rust-lang#96641 (Use a yes/no enum instead of a bool.) - rust-lang#96646 (Mitigate impact of subtle invalid call suggestion logic) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup

Since the settings can only be set when the JS is enabled, it's not really a problem. It also fixes a debate we had around the themes not being accessible easily before.
You can test it here.
r? @jsha