-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Update rustdoc.css #126209
Update rustdoc.css #126209
Conversation
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) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @jsha |
This indeed seems to fix the issue, thanks! Please add a test in |
I'm not familiar with the test system and don't know I could prevent this issue from occurring in the future. The issue was simply that the property was spread to an element it shouldn't have been so I don't know if a test could detect a problem in the future without knowing the intention of the programmer. I'm very new to this though and could be completely incorrect. |
This comment has been minimized.
This comment has been minimized.
I'm lost as to how an offset error would occur when my only change was to the overflow-wrap. |
There are merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged. You can start a rebase with the following commands:
The following commits are merge commits: |
This comment has been minimized.
This comment has been minimized.
maybe we could do a minimum width along with the default method so that it only makes the lines overlap if it would otherwise create the vertical line bug @notriddle |
Maybe we can automatically insert |
That would require parsing through all of the words, I think maybe giving each of the |
How does that commit look? |
This comment has been minimized.
This comment has been minimized.
@@ -898,8 +898,8 @@ because of the `[-]` element which would overlap with it. */ | |||
So, for table layouts, override the default with break-word, which does | |||
_not_ affect min-content intrinsic sizes. | |||
*/ | |||
table, | |||
.item-table { | |||
.item-table, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change can be removed.
This comment has been minimized.
This comment has been minimized.
I'm confused on how to fix the check issues. |
It says that in |
How should I go about fixing that? |
Update the mentioned file. |
The mentioned file being the test or the css page? |
The test. |
Some changes occurred in GUI tests. |
What if we did something like this, where instead of a table it is a flex? It does look a little different but I don't mind the appearance. |
This comment has been minimized.
This comment has been minimized.
The failure is "normal", not related to your changes. I restarted failing checks. If it still fails with the same error, just rebase. |
The type name ID map has underscores in its names, so the query element should have them, too.
- Autolabel PRs modifying `tests/run-make/` and `src/tools/run-make-support/` with `X-run-make` label. - Add reminder to update the tracking issue <#121876> if applicable when `tests/run-make/` is modified by a PR.
Update rustdoc.css Update rustdoc.css Update rustdoc.css Update rustdoc.css Update rustdoc.css Update rustdoc.css Update type-declation-overflow.goml fix test make into flex
Some changes occurred in src/tools/clippy cc @rust-lang/clippy
The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
You messed up the git history. ^^' |
I think I'm a little bit out of my depth here, somebody else should probably take the reins. Thanks for your patience you guys. If there's anything I can do to make it easier for you guys, I can do that for you. |
I'll take a look tomorrow. |
Closing in favor of #127418. |
…name, r=notriddle Wrap too long type name Fixes rust-lang#120595. Takeover of rust-lang#126209. cc `@BradMarr` r? `@notriddle`
Rollup merge of rust-lang#127418 - GuillaumeGomez:wrap-too-long-type-name, r=notriddle Wrap too long type name Fixes rust-lang#120595. Takeover of rust-lang#126209. cc `@BradMarr` r? `@notriddle`
…-table, r=GuillaumeGomez rustdoc: word wrap CamelCase in the item list table and sidebar This is an alternative to rust-lang#126209. That is, it fixes the issue that affects the very long type names in https://docs.rs/async-stripe/0.31.0/stripe/index.html#structs. This is, necessarily, a pile of nasty heuristics. We need to balance a few issues: - Sometimes, there's no real word break. For example, `BTreeMap` should be `BTree<wbr>Map`, not `B<wbr>Tree<wbr>Map`. - Sometimes, there's a legit word break, but the name is tiny and the HTML overhead isn't worth it. For example, if we're typesetting `TyCtx`, writing `Ty<wbr>Ctx` would have an HTML overhead of 50%. Line breaking inside it makes no sense. # Screenshots | Before | After | | ------ | ----- | | ![image](https://github.com/rust-lang/rust/assets/1593513/d51201fd-46c0-4f48-aee6-a477eadba288) | ![image](https://github.com/rust-lang/rust/assets/1593513/d8e77582-adcf-4966-bbfd-19dfdad7336a)
…-table, r=GuillaumeGomez rustdoc: word wrap CamelCase in the item list table and sidebar This is an alternative to rust-lang#126209. That is, it fixes the issue that affects the very long type names in https://docs.rs/async-stripe/0.31.0/stripe/index.html#structs. This is, necessarily, a pile of nasty heuristics. We need to balance a few issues: - Sometimes, there's no real word break. For example, `BTreeMap` should be `BTree<wbr>Map`, not `B<wbr>Tree<wbr>Map`. - Sometimes, there's a legit word break, but the name is tiny and the HTML overhead isn't worth it. For example, if we're typesetting `TyCtx`, writing `Ty<wbr>Ctx` would have an HTML overhead of 50%. Line breaking inside it makes no sense. # Screenshots | Before | After | | ------ | ----- | | ![image](https://github.com/rust-lang/rust/assets/1593513/d51201fd-46c0-4f48-aee6-a477eadba288) | ![image](https://github.com/rust-lang/rust/assets/1593513/d8e77582-adcf-4966-bbfd-19dfdad7336a)
Rollup merge of rust-lang#126247 - notriddle:notriddle/word-wrap-item-table, r=GuillaumeGomez rustdoc: word wrap CamelCase in the item list table and sidebar This is an alternative to rust-lang#126209. That is, it fixes the issue that affects the very long type names in https://docs.rs/async-stripe/0.31.0/stripe/index.html#structs. This is, necessarily, a pile of nasty heuristics. We need to balance a few issues: - Sometimes, there's no real word break. For example, `BTreeMap` should be `BTree<wbr>Map`, not `B<wbr>Tree<wbr>Map`. - Sometimes, there's a legit word break, but the name is tiny and the HTML overhead isn't worth it. For example, if we're typesetting `TyCtx`, writing `Ty<wbr>Ctx` would have an HTML overhead of 50%. Line breaking inside it makes no sense. # Screenshots | Before | After | | ------ | ----- | | ![image](https://github.com/rust-lang/rust/assets/1593513/d51201fd-46c0-4f48-aee6-a477eadba288) | ![image](https://github.com/rust-lang/rust/assets/1593513/d8e77582-adcf-4966-bbfd-19dfdad7336a)
fixes #120595
removing this selector fixes weird wrapping in certain pages like https://docs.rs/async-stripe/0.31.0/stripe/index.html#structs