Skip to content

Commit 2f2cff1

Browse files
Merge pull request #19639 from bbb651/doc-fix-dead-links
doc: Fix dead manual links
2 parents 794d478 + c7cf6bf commit 2f2cff1

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ assignees: ''
88
---
99

1010
<!--
11-
Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting
11+
Troubleshooting guide: https://rust-analyzer.github.io/book/troubleshooting.html
1212
Forum for questions: https://users.rust-lang.org/c/ide/14
1313
1414
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
2828

2929
**repository link (if public, optional)**: (eg. [rust-analyzer](https://github.com/rust-lang/rust-analyzer))
3030

31-
**code snippet to reproduce**:
31+
**code snippet to reproduce**:
3232
```rust
3333
// add your code here
3434

.github/ISSUE_TEMPLATE/critical_nightly_regression.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ assignees: ''
88
---
99

1010
<!--
11-
Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting
11+
Troubleshooting guide: https://rust-analyzer.github.io/book/troubleshooting.html
1212
1313
Please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3.
1414
-->

crates/ide-diagnostics/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl DiagnosticCode {
128128
format!("https://rust-lang.github.io/rust-clippy/master/#/{e}")
129129
}
130130
DiagnosticCode::Ra(e, _) => {
131-
format!("https://rust-analyzer.github.io/manual.html#{e}")
131+
format!("https://rust-analyzer.github.io/book/diagnostics.html#{e}")
132132
}
133133
}
134134
}

crates/rust-analyzer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.0"
44
homepage = "https://rust-analyzer.github.io/"
55
repository.workspace = true
66
description = "A language server for the Rust programming language"
7-
documentation = "https://rust-analyzer.github.io/manual.html"
7+
documentation = "https://rust-analyzer.github.io/book/"
88
autobins = false
99

1010
authors.workspace = true

crates/rust-analyzer/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ config_data! {
534534
imports_granularity_enforce: bool = false,
535535
/// How imports should be grouped into use statements.
536536
imports_granularity_group: ImportGranularityDef = ImportGranularityDef::Crate,
537-
/// Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.
537+
/// Group inserted imports by the [following order](https://rust-analyzer.github.io/book/features.html#auto-import). Groups are separated by newlines.
538538
imports_group_enable: bool = true,
539539
/// Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.
540540
imports_merge_glob: bool = true,

crates/rust-analyzer/src/reload.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl GlobalState {
158158
{
159159
status.health |= lsp_ext::Health::Warning;
160160
message.push_str("Failed to discover workspace.\n");
161-
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");
161+
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");
162162
}
163163
if self.fetch_workspace_error().is_err() {
164164
status.health |= lsp_ext::Health::Error;

docs/book/src/configuration_generated.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ How imports should be grouped into use statements.
809809

810810
Default: `true`
811811

812-
Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.
812+
Group inserted imports by the [following order](https://rust-analyzer.github.io/book/features.html#auto-import). Groups are separated by newlines.
813813

814814

815815
## rust-analyzer.imports.merge.glob {#imports.merge.glob}

editors/code/README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ It is recommended over and replaces `rust-lang.rust`.
1515
- apply suggestions from errors
1616
- ... and many more, check out the [manual] to see them all
1717

18-
[code completion]: https://rust-analyzer.github.io/manual.html#magic-completions
19-
[imports insertion]: https://rust-analyzer.github.io/manual.html#completion-with-autoimport
20-
[definition]: https://rust-analyzer.github.io/manual.html#go-to-definition
21-
[implementation]: https://rust-analyzer.github.io/manual.html#go-to-implementation
22-
[type definition]: https://rust-analyzer.github.io/manual.html#go-to-type-definition
23-
[find all references]: https://rust-analyzer.github.io/manual.html#find-all-references
24-
[workspace symbol search]: https://rust-analyzer.github.io/manual.html#workspace-symbol
25-
[symbol renaming]: https://rust-analyzer.github.io/manual.html#rename
26-
[types and documentation on hover]: https://rust-analyzer.github.io/manual.html#hover
27-
[inlay hints]: https://rust-analyzer.github.io/manual.html#inlay-hints
28-
[semantic syntax highlighting]: https://rust-analyzer.github.io/manual.html#semantic-syntax-highlighting
29-
[assists (code actions)]: https://rust-analyzer.github.io/manual.html#assists-code-actions
30-
[manual]: https://rust-analyzer.github.io/manual.html
18+
[code completion]: https://rust-analyzer.github.io/book/features.html#magic-completions
19+
[imports insertion]: https://rust-analyzer.github.io/book/features.html#completion-with-autoimport
20+
[definition]: https://rust-analyzer.github.io/book/features.html#go-to-definition
21+
[implementation]: https://rust-analyzer.github.io/book/features.html#go-to-implementation
22+
[type definition]: https://rust-analyzer.github.io/book/features.html#go-to-type-definition
23+
[find all references]: https://rust-analyzer.github.io/book/features.html#find-all-references
24+
[workspace symbol search]: https://rust-analyzer.github.io/book/features.html#workspace-symbol
25+
[symbol renaming]: https://rust-analyzer.github.io/book/features.html#rename
26+
[types and documentation on hover]: https://rust-analyzer.github.io/book/features.html#hover
27+
[inlay hints]: https://rust-analyzer.github.io/book/features.html#inlay-hints
28+
[semantic syntax highlighting]: https://rust-analyzer.github.io/book/features.html#semantic-syntax-highlighting
29+
[assists (code actions)]: https://rust-analyzer.github.io/book/assists.html
30+
[manual]: https://rust-analyzer.github.io/book/features.html
3131

3232
## Quick start
3333

@@ -41,7 +41,7 @@ It is recommended over and replaces `rust-lang.rust`.
4141

4242
This extension provides configurations through VSCode's configuration settings. All configurations are under `rust-analyzer.*`.
4343

44-
See [the manual](https://rust-analyzer.github.io/manual.html#vs-code-2) for more information on VSCode specific configurations.
44+
See [the manual](https://rust-analyzer.github.io/book/editor_features.html#vs-code) for more information on VSCode specific configurations.
4545

4646
## Communication
4747

editors/code/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@
18851885
"title": "imports",
18861886
"properties": {
18871887
"rust-analyzer.imports.group.enable": {
1888-
"markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
1888+
"markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/book/features.html#auto-import). Groups are separated by newlines.",
18891889
"default": true,
18901890
"type": "boolean"
18911891
}
@@ -3553,13 +3553,13 @@
35533553
{
35543554
"id": "docs",
35553555
"title": "Visit the docs!",
3556-
"description": "Confused about configurations? Want to learn more about rust-analyzer? Visit the [User Manual](https://rust-analyzer.github.io/manual.html)!",
3556+
"description": "Confused about configurations? Want to learn more about rust-analyzer? Visit the [User Manual](https://rust-analyzer.github.io/book/)!",
35573557
"media": {
35583558
"image": "./icon.png",
35593559
"altText": "rust-analyzer logo"
35603560
},
35613561
"completionEvents": [
3562-
"onLink:https://rust-analyzer.github.io/manual.html"
3562+
"onLink:https://rust-analyzer.github.io/book/"
35633563
]
35643564
},
35653565
{

editors/code/src/bootstrap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function bootstrap(
1515
if (!path) {
1616
throw new Error(
1717
"rust-analyzer Language Server is not available. " +
18-
"Please, ensure its [proper installation](https://rust-analyzer.github.io/manual.html#installation).",
18+
"Please, ensure its [proper installation](https://rust-analyzer.github.io/book/installation.html).",
1919
);
2020
}
2121

0 commit comments

Comments
 (0)