-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Make html rendered by rustdoc allow searching non-English identifier / alias #126057
Conversation
…/ alias. Fix alias search result showing `undefined` description.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @fmease (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 comment has been minimized.
This comment has been minimized.
Demo: Corresponding code:
|
Seems like a very good start! Can you add tests in Also cc @notriddle |
Done. |
This comment has been minimized.
This comment has been minimized.
I'd be happy to do that if dropping support for some legacy browser versions is acceptable (I must admit, I didn't think about browser compatibility at the beginning) |
Here's where the browser support matrix is defined: https://rust-lang.github.io/rfcs/1985-tiered-browser-support.html. At the present time, clicking the browserList link in the RFC gives out:
It also lists these two, but MDN doesn't have compat data for UC Browser, and they're both based on Blink so it probably doesn't matter.
According to MDN, Unicode property escapes are available in Chrome 64, Firefox 78, and Safari 11. It should be fine. |
This comment has been minimized.
This comment has been minimized.
Does anybody know why we have both of these? There's two spots where we're checking es versions.
|
Because ES-Check and ESLint are separate tools, and there's no out-of-the-box solution to make them share configurations? |
Should I bump the EcmaScript version in these files as well?
|
Probably a smart idea, yes. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks good to me, thanks a lot! Just letting @notriddle review to ensure I didn't miss something. |
r? notriddle @bors r+ This seems like a reasonable choice to me. It does change things so that if you just search for Not a big deal, since that's not a very useful query. We can fix it if it's actually a problem. |
Rollup of 6 pull requests Successful merges: - rust-lang#125951 (Stabilize `error_in_core`) - rust-lang#125998 (std::unix::fs::get_mode implementation for illumos/solaris.) - rust-lang#126057 (Make html rendered by rustdoc allow searching non-English identifier / alias) - rust-lang#126065 (mark binding undetermined if target name exist and not obtained) - rust-lang#126105 (Add debugging utils and comments to Fuchsia scripts) - rust-lang#126138 (Fix typo in docs for std::pin) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#126057 - Sunshine40:rustdoc-search-non-english, r=notriddle Make html rendered by rustdoc allow searching non-English identifier / alias Fix alias search result showing `undefined` description. Inspired by rust-lang/mdBook#2393 . Not sure if it's worth it adding full-text search functionality to rustdoc rendered html.
Fix alias search result showing
undefined
description.Inspired by rust-lang/mdBook#2393 .
Not sure if it's worth it adding full-text search functionality to rustdoc rendered html.