-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Color codes in docs are like chaos #37147
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
Comments
cc @rust-lang/docs (also not sure how to ping the style team) |
It seems to consider |
Well, it seems a bit silly: <list name="constants">
<item> true </item>
<item> false </item>
<item> Some </item>
<item> None </item>
<item> Ok </item>
<item> Err </item>
<item> Success </item>
<item> Failure </item>
<item> Cons </item>
<item> Nil </item>
</list> Out of those variants only <keyword String="constants" attribute="Constant" context="#stay"/> <itemData name="Constant" defStyleNum="dsConstant" spellChecking="0"/> And |
You should! :p |
@GuillaumeGomez Is this something you still want to pursue? I've marked as T-doc. |
@Mark-Simulacrum: It's still in discussion actually, so yes. :) |
Closing, as this is not super-actionable as is and many fixes have landed. |
A good example is: #37102 (comment)
Keywords should have one color code.
Enums should have another color code.
Structs should have another color code.
...
Color codes are up to debate. I'll start to clean this up soon.
cc @eddyb
The text was updated successfully, but these errors were encountered: