diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-04-20 18:39:53 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-20 18:39:53 +0000 |
| commit | 42de0a525b7747bb8e901a39b90c2bf529883ffd (patch) | |
| tree | 9c2f6982003339036b8f50d482f510c433629671 | |
| parent | b2974ac9c17cec22c3f4ac93c7ab4218c9cf10c0 (diff) | |
| parent | 3f0d07565340a162ad581b7b55d7d432d4d49fe0 (diff) | |
| download | rust-42de0a525b7747bb8e901a39b90c2bf529883ffd.tar.gz rust-42de0a525b7747bb8e901a39b90c2bf529883ffd.zip | |
Merge pull request #19639 from bbb651/doc-fix-dead-links
doc: Fix dead manual links
10 files changed, 26 insertions, 26 deletions
diff --git a/src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/bug_report.md b/src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/bug_report.md index 0d99d06bcdd..8333cf08929 100644 --- a/src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/bug_report.md +++ b/src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/bug_report.md @@ -8,7 +8,7 @@ assignees: '' --- <!-- -Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting +Troubleshooting guide: https://rust-analyzer.github.io/book/troubleshooting.html Forum for questions: https://users.rust-lang.org/c/ide/14 Before submitting, please make sure that you're not running into one of these known issues: @@ -28,7 +28,7 @@ Otherwise please try to provide information which will help us to fix the issue **repository link (if public, optional)**: (eg. [rust-analyzer](https://github.com/rust-lang/rust-analyzer)) -**code snippet to reproduce**: +**code snippet to reproduce**: ```rust // add your code here diff --git a/src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/critical_nightly_regression.md b/src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/critical_nightly_regression.md index ad220ff65ca..23c43443c84 100644 --- a/src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/critical_nightly_regression.md +++ b/src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/critical_nightly_regression.md @@ -8,7 +8,7 @@ assignees: '' --- <!-- -Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting +Troubleshooting guide: https://rust-analyzer.github.io/book/troubleshooting.html Please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3. --> diff --git a/src/tools/rust-analyzer/crates/ide-diagnostics/src/lib.rs b/src/tools/rust-analyzer/crates/ide-diagnostics/src/lib.rs index d367dd929b4..0d725b35634 100644 --- a/src/tools/rust-analyzer/crates/ide-diagnostics/src/lib.rs +++ b/src/tools/rust-analyzer/crates/ide-diagnostics/src/lib.rs @@ -128,7 +128,7 @@ impl DiagnosticCode { format!("https://rust-lang.github.io/rust-clippy/master/#/{e}") } DiagnosticCode::Ra(e, _) => { - format!("https://rust-analyzer.github.io/manual.html#{e}") + format!("https://rust-analyzer.github.io/book/diagnostics.html#{e}") } } } diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml b/src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml index af7b4e676c8..b59d06838e0 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml +++ b/src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.0" homepage = "https://rust-analyzer.github.io/" repository.workspace = true description = "A language server for the Rust programming language" -documentation = "https://rust-analyzer.github.io/manual.html" +documentation = "https://rust-analyzer.github.io/book/" autobins = false authors.workspace = true diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs index fd6cd385421..a9bde1800bf 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs @@ -534,7 +534,7 @@ config_data! { imports_granularity_enforce: bool = false, /// How imports should be grouped into use statements. imports_granularity_group: ImportGranularityDef = ImportGranularityDef::Crate, - /// Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines. + /// Group inserted imports by the [following order](https://rust-analyzer.github.io/book/features.html#auto-import). Groups are separated by newlines. imports_group_enable: bool = true, /// Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`. imports_merge_glob: bool = true, diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/reload.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/reload.rs index b73019b310d..5702042dff6 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/reload.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/reload.rs @@ -158,7 +158,7 @@ impl GlobalState { { status.health |= lsp_ext::Health::Warning; message.push_str("Failed to discover workspace.\n"); - message.push_str("Consider adding the `Cargo.toml` of the workspace to the [`linkedProjects`](https://rust-analyzer.github.io/manual.html#rust-analyzer.linkedProjects) setting.\n\n"); + message.push_str("Consider adding the `Cargo.toml` of the workspace to the [`linkedProjects`](https://rust-analyzer.github.io/book/configuration.html#linkedProjects) setting.\n\n"); } if self.fetch_workspace_error().is_err() { status.health |= lsp_ext::Health::Error; diff --git a/src/tools/rust-analyzer/docs/book/src/configuration_generated.md b/src/tools/rust-analyzer/docs/book/src/configuration_generated.md index 214ca114632..2ae73df61d0 100644 --- a/src/tools/rust-analyzer/docs/book/src/configuration_generated.md +++ b/src/tools/rust-analyzer/docs/book/src/configuration_generated.md @@ -809,7 +809,7 @@ How imports should be grouped into use statements. Default: `true` -Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines. +Group inserted imports by the [following order](https://rust-analyzer.github.io/book/features.html#auto-import). Groups are separated by newlines. ## rust-analyzer.imports.merge.glob {#imports.merge.glob} diff --git a/src/tools/rust-analyzer/editors/code/README.md b/src/tools/rust-analyzer/editors/code/README.md index 36ab9818822..c02882b4982 100644 --- a/src/tools/rust-analyzer/editors/code/README.md +++ b/src/tools/rust-analyzer/editors/code/README.md @@ -15,19 +15,19 @@ It is recommended over and replaces `rust-lang.rust`. - apply suggestions from errors - ... and many more, check out the [manual] to see them all -[code completion]: https://rust-analyzer.github.io/manual.html#magic-completions -[imports insertion]: https://rust-analyzer.github.io/manual.html#completion-with-autoimport -[definition]: https://rust-analyzer.github.io/manual.html#go-to-definition -[implementation]: https://rust-analyzer.github.io/manual.html#go-to-implementation -[type definition]: https://rust-analyzer.github.io/manual.html#go-to-type-definition -[find all references]: https://rust-analyzer.github.io/manual.html#find-all-references -[workspace symbol search]: https://rust-analyzer.github.io/manual.html#workspace-symbol -[symbol renaming]: https://rust-analyzer.github.io/manual.html#rename -[types and documentation on hover]: https://rust-analyzer.github.io/manual.html#hover -[inlay hints]: https://rust-analyzer.github.io/manual.html#inlay-hints -[semantic syntax highlighting]: https://rust-analyzer.github.io/manual.html#semantic-syntax-highlighting -[assists (code actions)]: https://rust-analyzer.github.io/manual.html#assists-code-actions -[manual]: https://rust-analyzer.github.io/manual.html +[code completion]: https://rust-analyzer.github.io/book/features.html#magic-completions +[imports insertion]: https://rust-analyzer.github.io/book/features.html#completion-with-autoimport +[definition]: https://rust-analyzer.github.io/book/features.html#go-to-definition +[implementation]: https://rust-analyzer.github.io/book/features.html#go-to-implementation +[type definition]: https://rust-analyzer.github.io/book/features.html#go-to-type-definition +[find all references]: https://rust-analyzer.github.io/book/features.html#find-all-references +[workspace symbol search]: https://rust-analyzer.github.io/book/features.html#workspace-symbol +[symbol renaming]: https://rust-analyzer.github.io/book/features.html#rename +[types and documentation on hover]: https://rust-analyzer.github.io/book/features.html#hover +[inlay hints]: https://rust-analyzer.github.io/book/features.html#inlay-hints +[semantic syntax highlighting]: https://rust-analyzer.github.io/book/features.html#semantic-syntax-highlighting +[assists (code actions)]: https://rust-analyzer.github.io/book/assists.html +[manual]: https://rust-analyzer.github.io/book/features.html ## Quick start @@ -41,7 +41,7 @@ It is recommended over and replaces `rust-lang.rust`. This extension provides configurations through VSCode's configuration settings. All configurations are under `rust-analyzer.*`. -See [the manual](https://rust-analyzer.github.io/manual.html#vs-code-2) for more information on VSCode specific configurations. +See [the manual](https://rust-analyzer.github.io/book/editor_features.html#vs-code) for more information on VSCode specific configurations. ## Communication diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json index ca7bbbcc6c3..b05be450cbe 100644 --- a/src/tools/rust-analyzer/editors/code/package.json +++ b/src/tools/rust-analyzer/editors/code/package.json @@ -1885,7 +1885,7 @@ "title": "imports", "properties": { "rust-analyzer.imports.group.enable": { - "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.", + "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/book/features.html#auto-import). Groups are separated by newlines.", "default": true, "type": "boolean" } @@ -3553,13 +3553,13 @@ { "id": "docs", "title": "Visit the docs!", - "description": "Confused about configurations? Want to learn more about rust-analyzer? Visit the [User Manual](https://rust-analyzer.github.io/manual.html)!", + "description": "Confused about configurations? Want to learn more about rust-analyzer? Visit the [User Manual](https://rust-analyzer.github.io/book/)!", "media": { "image": "./icon.png", "altText": "rust-analyzer logo" }, "completionEvents": [ - "onLink:https://rust-analyzer.github.io/manual.html" + "onLink:https://rust-analyzer.github.io/book/" ] }, { diff --git a/src/tools/rust-analyzer/editors/code/src/bootstrap.ts b/src/tools/rust-analyzer/editors/code/src/bootstrap.ts index bccae73c9a7..c63c6f2f7c3 100644 --- a/src/tools/rust-analyzer/editors/code/src/bootstrap.ts +++ b/src/tools/rust-analyzer/editors/code/src/bootstrap.ts @@ -15,7 +15,7 @@ export async function bootstrap( if (!path) { throw new Error( "rust-analyzer Language Server is not available. " + - "Please, ensure its [proper installation](https://rust-analyzer.github.io/manual.html#installation).", + "Please, ensure its [proper installation](https://rust-analyzer.github.io/book/installation.html).", ); } |
