Skip to content

Commit

Permalink
Remove rustc docs search
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed Jun 4, 2024
1 parent 8fb9e0f commit f3cf590
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion extension/command/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class HelpCommand extends Command {
"tips1": `Tips: You can use shortcut <match>Cmd</match>/<match>Ctrl</match> + <match>L</match> to autofocus the address bar`,
"tips2": `Tips: Combine <match>Cmd</match> or <match>Alt</match> with <match>Enter</match> to open the search result in the new tab`,
":": `Prefix <match>:</match> to execute command (:cargo, :book, :yet, :stable, etc)`,
"/": `Prefix <match>/</match> to search nightly rust docs, prefix <match>//</match> to search nightly rustc docs`,
"/": `Prefix <match>/</match> to search nightly rust docs`,
"!": `Prefix <match>!</match> to search docs.rs, prefix <match>!!</match> to search crates.io, prefix <match>!!!</match> can redirect to the repository`,
"~": `Prefix <match>~</match> to search external crate's docs`,
"@": `Prefix <match>@crate</match> (<dim>e.g. @tokio</dim>) to search that crate's doc exclusively`,
Expand Down
35 changes: 0 additions & 35 deletions extension/script/rustc.js

This file was deleted.

5 changes: 0 additions & 5 deletions manifest.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ json
css=['script/doc-rust-lang-org.css', 'script/details-toggle.css'],
exclude_matches=['*://doc.rust-lang.org/nightly/nightly-rustc/*'],
)
.addContentScript(
matches=['*://doc.rust-lang.org/nightly/nightly-rustc/*'],
js=utils.js_files('script', ['lib', 'rustc', 'rust-src-navigate']),
css=['script/details-toggle.css'],
)
.addContentScript(
matches=['*://rust.extension.sh/update'],
js=['content-script-bundle.js'] + utils.js_files('script', ['rust-extension-sh']),
Expand Down

0 comments on commit f3cf590

Please sign in to comment.