2

rustdoc-search: simplify `checkPath` and `sortResults` by notriddle · Pull Reque...

 9 months ago
source link: https://github.com/rust-lang/rust/pull/118109
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Conversation

Contributor

These two commits reduce the amount of code in search.js with no noticeable change in performance.

https://notriddle.com/rustdoc-html-demo-5/profile-5/index.html

Collaborator

r? @jsha

(rustbot has picked a reviewer for you, use r? to override)

rustbot

added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

labels

Nov 20, 2023

Collaborator

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @jsha

@@ -18,6 +18,8 @@ if (!Array.prototype.toSpliced) {

// This mapping table should match the discriminants of

// `rustdoc::formats::item_type::ItemType` type in Rust.

const itemTypes = [

"keyword",

Took me a little while to understand why you moved these two at the start. Could you add a comment mentioning that they need to be first to be sure they are considered first (for precedence) please? Either here or in item_type.rs, as you see fit best.

Contributor

Author

That makes sense.

Contributor

Author

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Thanks!

@bors r+ rollup

Contributor

📌 Commit f2d3394 has been approved by GuillaumeGomez

It is now in the queue for this repository.

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

Nov 21, 2023

Contributor

☔ The latest upstream changes (presumably #118134) made this pull request unmergeable. Please resolve the merge conflicts.

bors

added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Nov 21, 2023

This comment has been minimized.

Contributor

Author

@bors r=GuillaumeGomez

Rebased.

Contributor

📌 Commit 28f17d9 has been approved by GuillaumeGomez

It is now in the queue for this repository.

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Nov 21, 2023

bors

merged commit bdb929e into

rust-lang:master

Nov 22, 2023

11 checks passed

rust-timer

added a commit to rust-lang-ci/rust that referenced this pull request

Nov 22, 2023

notriddle

deleted the notriddle/search-cleanup-2 branch

November 22, 2023 02:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Back to tour

GuillaumeGomez

GuillaumeGomez approved these changes
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects

None yet

Milestone

1.76.0

Development

Successfully merging this pull request may close these issues.

None yet

6 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK