-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Set color for <a> in a more straightforward way. #91102
Conversation
Some changes occurred in HTML/CSS/JS. |
This makes it easier to find the test that needs fixing.
Here's a doc with the jump to def feature: https://rustdoc.crud.net/jsha/theme-anchor-rustls/src/rustls/cipher.rs.html#8-12. You were right, the links in the source view had the wrong color. I fixed that. I also made a small tweak to the rustdoc-gui tester, so it would print full filenames on error. That's something I've run into trouble with before; it's not always clear what needs fixing, particularly when I was new on the project. |
This comment has been minimized.
This comment has been minimized.
@@ -0,0 +1,12 @@ | |||
goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html | |||
|
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.
Better enforce the theme used (I had some issues because my default theme isn't the light one). To do it, take a look here.
Then it's a good idea, thanks! |
Previously, we set the default color for <a> tags to black, and then had an override with a bunch of not() clauses to set anchors in docblocks to blue. Instead, we should set the default color for <a> to blue (or equivalent in other themes), and override it for places like the sidebar or search results, where we don't want them to be styled as links.
Thanks! r=me once CI pass. |
@bors r=GuillaumeGomez rollup |
📌 Commit a56559d has been approved by |
…askrgr Rollup of 3 pull requests Successful merges: - rust-lang#91102 (Set color for <a> in a more straightforward way.) - rust-lang#91143 (Update books) - rust-lang#91144 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Previously, we set the default color for tags to black, and then had an override with a bunch of not() clauses to set anchors in
docblocks to blue.
Instead, we should set the default color for to blue (or equivalent in other themes), and override it for places like the sidebar or search results, where we don't want them to be styled as links.
Demo at https://rustdoc.crud.net/jsha/theme-anchor/std/string/struct.String.html. This should result in no visible changes.
r? @GuillaumeGomez