Skip to content

Commit 58b86cd

Browse files
committed
Auto merge of #12929 - ehuss:fix-md-man-links, r=epage
Fix some broken links in the man pages The `mdman` tool does not automatically convert links with the `.md` extension to `.html` like mdbook does. When using links with `.md`, the TXT and troff files ended up with broken links. This fixes the few that I found.
2 parents d899b51 + 5778dd5 commit 58b86cd

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/doc/man/cargo-add.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ When you add a package that is already present, the existing entry will be updat
3535
Upon successful invocation, the enabled (`+`) and disabled (`-`) [features] of the specified
3636
dependency will be listed in the command's output.
3737

38-
[features]: ../reference/features.md
38+
[features]: ../reference/features.html
3939

4040
## OPTIONS
4141

src/doc/man/cargo-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ will be used, beginning discovery at `$PATH/.cargo/config.toml`.
9090

9191
{{#option "`--vers` _version_" "`--version` _version_" }}
9292
Specify a version to install. This may be a [version
93-
requirement](../reference/specifying-dependencies.md), like `~1.2`, to have Cargo
93+
requirement](../reference/specifying-dependencies.html), like `~1.2`, to have Cargo
9494
select the newest version from the given requirement. If the version does not
9595
have a requirement operator (such as `^` or `~`), then it must be in the form
9696
_MAJOR.MINOR.PATCH_, and will install exactly that version; it is *not*

src/doc/man/generated_txt/cargo-add.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ DESCRIPTION
3333
be updated with the flags specified.
3434

3535
Upon successful invocation, the enabled (+) and disabled (-) features
36-
<https://doc.rust-lang.org/cargo/reference/features.md> of the specified
37-
dependency will be listed in the command’s output.
36+
<https://doc.rust-lang.org/cargo/reference/features.html> of the
37+
specified dependency will be listed in the command’s output.
3838

3939
OPTIONS
4040
Source options

src/doc/man/generated_txt/cargo-install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ OPTIONS
9494
Install Options
9595
--vers version, --version version
9696
Specify a version to install. This may be a version requirement
97-
<https://doc.rust-lang.org/cargo/reference/specifying-dependencies.md>,
97+
<https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html>,
9898
like ~1.2, to have Cargo select the newest version from the given
9999
requirement. If the version does not have a requirement operator
100100
(such as ^ or ~), then it must be in the form MAJOR.MINOR.PATCH, and

src/doc/src/commands/cargo-add.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ When you add a package that is already present, the existing entry will be updat
3232
Upon successful invocation, the enabled (`+`) and disabled (`-`) [features] of the specified
3333
dependency will be listed in the command's output.
3434

35-
[features]: ../reference/features.md
35+
[features]: ../reference/features.html
3636

3737
## OPTIONS
3838

src/doc/src/commands/cargo-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ will be used, beginning discovery at `$PATH/.cargo/config.toml`.
9494

9595
<dt class="option-term" id="option-cargo-install---vers"><a class="option-anchor" href="#option-cargo-install---vers"></a><code>--vers</code> <em>version</em></dt>
9696
<dt class="option-term" id="option-cargo-install---version"><a class="option-anchor" href="#option-cargo-install---version"></a><code>--version</code> <em>version</em></dt>
97-
<dd class="option-desc">Specify a version to install. This may be a <a href="../reference/specifying-dependencies.md">version
97+
<dd class="option-desc">Specify a version to install. This may be a <a href="../reference/specifying-dependencies.html">version
9898
requirement</a>, like <code>~1.2</code>, to have Cargo
9999
select the newest version from the given requirement. If the version does not
100100
have a requirement operator (such as <code>^</code> or <code>~</code>), then it must be in the form

src/etc/man/cargo-add.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If no source is specified, then a best effort will be made to select one, includ
4444
.sp
4545
When you add a package that is already present, the existing entry will be updated with the flags specified.
4646
.sp
47-
Upon successful invocation, the enabled (\fB+\fR) and disabled (\fB\-\fR) \fIfeatures\fR <https://doc.rust\-lang.org/cargo/reference/features.md> of the specified
47+
Upon successful invocation, the enabled (\fB+\fR) and disabled (\fB\-\fR) \fIfeatures\fR <https://doc.rust\-lang.org/cargo/reference/features.html> of the specified
4848
dependency will be listed in the command\[cq]s output.
4949
.SH "OPTIONS"
5050
.SS "Source options"

src/etc/man/cargo-install.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ will be used, beginning discovery at \fB$PATH/.cargo/config.toml\fR\&.
114114
\fB\-\-version\fR \fIversion\fR
115115
.RS 4
116116
Specify a version to install. This may be a \fIversion
117-
requirement\fR <https://doc.rust\-lang.org/cargo/reference/specifying\-dependencies.md>, like \fB~1.2\fR, to have Cargo
117+
requirement\fR <https://doc.rust\-lang.org/cargo/reference/specifying\-dependencies.html>, like \fB~1.2\fR, to have Cargo
118118
select the newest version from the given requirement. If the version does not
119119
have a requirement operator (such as \fB^\fR or \fB~\fR), then it must be in the form
120120
\fIMAJOR.MINOR.PATCH\fR, and will install exactly that version; it is \fInot\fR

0 commit comments

Comments
 (0)