-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: merge theme css into rustdoc.css #115829
rustdoc: merge theme css into rustdoc.css #115829
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @jsha A change occurred in the Ayu theme. cc @Cldfire Some changes occurred in HTML/CSS themes. |
This comment has been minimized.
This comment has been minimized.
4a1f1ca
to
5f9c3db
Compare
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, @jsha |
This comment has been minimized.
This comment has been minimized.
5f9c3db
to
07754de
Compare
This comment has been minimized.
This comment has been minimized.
5b8ba88
to
1970d25
Compare
This comment has been minimized.
This comment has been minimized.
1970d25
to
0d626c7
Compare
I'm not too sure what to think about this change. The gain seems to be very small whereas now everything is in one file. The biggest downside being the rules for the ayu theme which all have to include to An opinion maybe @jsha? |
If it helps, this change not only improves first paint latency, but also removes a bunch of stuff from |
Oh that part I already figured out. It's really about maintenance. Also, did you check what happens if someone adds their own theme? Since we won't create the directory anymore, I'm curious how it goes if the folder doesn't exist. |
There's already a run-make test that checks the directory layout. It works fine, because custom themes are placed at the doc root and have the resource suffix instead of a hash (like There isn't a GUI test, though, and I managed to find a problem. It was fixable by making sure not to call |
Ok, looks all good and square. So as said above, my only concern is about maintenance. I just want @jsha to have a look first before we move forward on this. Nice work in any case! 👍 |
0d626c7
to
68c0fc0
Compare
Some changes occurred in GUI tests. |
… r=GuillaumeGomez rusdoc: add gui test for custom CSS themes Based on rust-lang#115829 (comment)
This looks good to me! Thanks for measuring the TTFP improvement, that'll be nice. |
Then let's go! Thanks again @notriddle. @bors r+ |
68c0fc0
to
ab41e2b
Compare
Windows paths in shell. Needed to put quotes around them in the run-make test to stop @bors r=GuillaumeGomez |
…s-merge, r=GuillaumeGomez rustdoc: merge theme css into rustdoc.css Based on rust-lang#115812 (comment) Having them in separate files used to make more sense, before the migration to CSS variables made the theme files as small as they are nowadays. This is already how docs.rs and mdBook do it. WebPageTest comparison page: https://www.webpagetest.org/video/compare.php?tests=230913_AiDc3F_B9E,230913_AiDc7G_B9B Filmstrip comparison: ![image](https://github.com/rust-lang/rust/assets/1593513/7ccad27b-7497-47ee-94c0-1a701b69c0c2) Old waterfall: ![image](https://github.com/rust-lang/rust/assets/1593513/7a6e4375-226d-4205-8871-a4d775a70748) New waterfall: ![image](https://github.com/rust-lang/rust/assets/1593513/e29112e3-84f7-417d-a250-cd6c10fa50f5)
💥 Test timed out |
@bors retry x86_64-apple-1 fell over. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c48e6ff): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 631.45s -> 633.302s (0.29%) |
…iler-errors Fix some triagebot mentions paths This fixes some mentions paths in `triagebot.toml` that are no longer valid. * rustdoc themes were merged into rustdoc.css (which already has a mention, and unfortunately can't independently mention the ayu theme). rust-lang#115829 cc `@GuillaumeGomez` `@Cldfire` * The entry for `inspect_obligations.rs` was never correct, from rust-lang#122385. cc `@lcnr` `@compiler-errors` * The entry for `need_type_info.rs` was moved in rust-lang#127501
Rollup merge of rust-lang#134045 - ehuss:triagebot-path-fixes, r=compiler-errors Fix some triagebot mentions paths This fixes some mentions paths in `triagebot.toml` that are no longer valid. * rustdoc themes were merged into rustdoc.css (which already has a mention, and unfortunately can't independently mention the ayu theme). rust-lang#115829 cc `@GuillaumeGomez` `@Cldfire` * The entry for `inspect_obligations.rs` was never correct, from rust-lang#122385. cc `@lcnr` `@compiler-errors` * The entry for `need_type_info.rs` was moved in rust-lang#127501
Fix some triagebot mentions paths This fixes some mentions paths in `triagebot.toml` that are no longer valid. * rustdoc themes were merged into rustdoc.css (which already has a mention, and unfortunately can't independently mention the ayu theme). rust-lang/rust#115829 cc `@GuillaumeGomez` `@Cldfire` * The entry for `inspect_obligations.rs` was never correct, from rust-lang/rust#122385. cc `@lcnr` `@compiler-errors` * The entry for `need_type_info.rs` was moved in rust-lang/rust#127501
Based on #115812 (comment)
Having them in separate files used to make more sense, before the migration to CSS variables made the theme files as small as they are nowadays. This is already how docs.rs and mdBook do it.
WebPageTest comparison page:
https://www.webpagetest.org/video/compare.php?tests=230913_AiDc3F_B9E,230913_AiDc7G_B9B
Filmstrip comparison:
Old waterfall:
New waterfall: