Skip to content

Commit fbae250

Browse files
committed
doc (publish): use precise links to token config docs
1 parent 30a29b4 commit fbae250

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

src/doc/man/cargo-publish.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ following steps:
2828
and may timeout. In that case, you will need to check for completion
2929
manually. This timeout does not affect the upload.
3030

31-
This command requires you to be authenticated using {{man "cargo-login" 1}}
32-
or [environment variables](../reference/environment-variables.html).
31+
This command requires you to be authenticated using {{man "cargo-login" 1}}
32+
or environment variables of the [`registry.token`](../reference/config.html#registrytoken)
33+
and [`registries.<name>.token`](../reference/config.html#registriesnametoken) config fields.
3334

3435
See [the reference](../reference/publishing.html) for more details about
3536
packaging and publishing.

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ DESCRIPTION
2626
manually. This timeout does not affect the upload.
2727

2828
This command requires you to be authenticated using cargo-login(1) or
29-
environment variables
30-
<https://doc.rust-lang.org/cargo/reference/environment-variables.html>.
29+
environment variables of the registry.token
30+
<https://doc.rust-lang.org/cargo/reference/config.html#registrytoken>
31+
and registries.<name>.token
32+
<https://doc.rust-lang.org/cargo/reference/config.html#registriesnametoken>
33+
config fields.
3134

3235
See the reference
3336
<https://doc.rust-lang.org/cargo/reference/publishing.html> for more

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ following steps:
2424
and may timeout. In that case, you will need to check for completion
2525
manually. This timeout does not affect the upload.
2626

27-
This command requires you to be authenticated using [cargo-login(1)](cargo-login.html)
28-
or [environment variables](../reference/environment-variables.html).
27+
This command requires you to be authenticated using [cargo-login(1)](cargo-login.html)
28+
or environment variables of the [`registry.token`](../reference/config.html#registrytoken)
29+
and [`registries.<name>.token`](../reference/config.html#registriesnametoken) config fields.
2930

3031
See [the reference](../reference/publishing.html) for more details about
3132
packaging and publishing.

src/etc/man/cargo-publish.1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ manually. This timeout does not affect the upload.
3838
.RE
3939
.sp
4040
This command requires you to be authenticated using \fBcargo\-login\fR(1)
41-
or \fIenvironment variables\fR <https://doc.rust\-lang.org/cargo/reference/environment\-variables.html>\&.
41+
or environment variables of the \fI\f(BIregistry.token\fI\fR <https://doc.rust\-lang.org/cargo/reference/config.html#registrytoken>
42+
and \fI\f(BIregistries.<name>.token\fI\fR <https://doc.rust\-lang.org/cargo/reference/config.html#registriesnametoken> config fields.
4243
.sp
4344
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/publishing.html> for more details about
4445
packaging and publishing.

0 commit comments

Comments
 (0)