-
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
Rustdoc search: Increase relevance of primitive types #25702
Conversation
There are more possible optimizations left (cached length in loops) as well as some possible bugs (shadowed variables) to fix. This is mostly syntactic.
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
This is a great idea. What do you think about just a simpler phrase like (primitive type) for the highlight? |
@bluss, I like that. Italic, too? |
r=me with the (primitive type) hint updated as discussed. |
1253c13
to
07b1994
Compare
@gankro thanks for the review. This is how it looks now: |
@bors r+ rollup Awesome, thanks! |
📌 Commit 07b1994 has been approved by |
07b1994
to
ec60d9f
Compare
@gankro I think bors picked the commit I just replaced. (Doesn't matter though, I only changed the commit message.) |
@bors r- |
@bors r+ ec60d |
(we'll see if that worked... the PR is certainly still approved in the queue...) |
Thanks! :) |
Lol I didn't intend the italic. Either works. |
I liked the italic, and it's trivial to fiddle with later. |
…, r=Gankro This minimally changes rustdoc's search as described in rust-lang#25167. Additionally, I also cleaned up some parts of the JS code. There is one more change I made: After each result for a primitive type, I added "(Overview of primitive type)". This further differentiates the result from the module (previously, the only difference was that the module's link was blue). I'm not this is the way to go (this seems to be the only place where we do this) and it's no problem for me to remove that commit. ![std__str_-_rust](https://cloud.githubusercontent.com/assets/20063/7770589/67e8cb26-0090-11e5-8f99-c2a3af9fa37f.png) cc @steveklabnik (it concerns docs) and @alexcrichton (who made changes to rustdoc previously)
…, r=Gankro This minimally changes rustdoc's search as described in rust-lang#25167. Additionally, I also cleaned up some parts of the JS code. There is one more change I made: After each result for a primitive type, I added "(Overview of primitive type)". This further differentiates the result from the module (previously, the only difference was that the module's link was blue). I'm not this is the way to go (this seems to be the only place where we do this) and it's no problem for me to remove that commit. ![std__str_-_rust](https://cloud.githubusercontent.com/assets/20063/7770589/67e8cb26-0090-11e5-8f99-c2a3af9fa37f.png) cc @steveklabnik (it concerns docs) and @alexcrichton (who made changes to rustdoc previously)
…, r=Gankro This minimally changes rustdoc's search as described in rust-lang#25167. Additionally, I also cleaned up some parts of the JS code. There is one more change I made: After each result for a primitive type, I added "(Overview of primitive type)". This further differentiates the result from the module (previously, the only difference was that the module's link was blue). I'm not this is the way to go (this seems to be the only place where we do this) and it's no problem for me to remove that commit. ![std__str_-_rust](https://cloud.githubusercontent.com/assets/20063/7770589/67e8cb26-0090-11e5-8f99-c2a3af9fa37f.png) cc @steveklabnik (it concerns docs) and @alexcrichton (who made changes to rustdoc previously)
…, r=Gankro This minimally changes rustdoc's search as described in rust-lang#25167. Additionally, I also cleaned up some parts of the JS code. There is one more change I made: After each result for a primitive type, I added "(Overview of primitive type)". This further differentiates the result from the module (previously, the only difference was that the module's link was blue). I'm not this is the way to go (this seems to be the only place where we do this) and it's no problem for me to remove that commit. ![std__str_-_rust](https://cloud.githubusercontent.com/assets/20063/7770589/67e8cb26-0090-11e5-8f99-c2a3af9fa37f.png) cc @steveklabnik (it concerns docs) and @alexcrichton (who made changes to rustdoc previously)
This minimally changes rustdoc's search as described in #25167.
Additionally, I also cleaned up some parts of the JS code.
There is one more change I made: After each result for a primitive type, I added "(Overview of primitive type)". This further differentiates the result from the module (previously, the only difference was that the module's link was blue). I'm not this is the way to go (this seems to be the only place where we do this) and it's no problem for me to remove that commit.
cc @steveklabnik (it concerns docs) and @alexcrichton (who made changes to rustdoc previously)