You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #8793 - ehuss:fix-man-links, r=alexcrichton
Fix man page links inside `option` blocks.
Links inside `{{#option}}` blocks were erroneously being converted to absolute links when emitting the `md` format because they were being rendered as HTML. This wasn't intended and caused some links to fail. It also causes problems for offline viewing (since the links are to an external website).
Also, man-page links like `{{man "cargo-foo" 1}}` were linking to `.md` extension, but since they are processed as markdown into HTML, mdbook's `.md` to `.html` translation wasn't getting applied. The simple fix is to always use `.html`.
This revealed a legitimate error in a link in `cargo-publish.md` which had the wrong anchor link (`#registrydefault`).
This also revealed that the CI check that the man pages are in sync wasn't working quite right (it was not checking the `etc/man` directory for changes).
<ddclass="option-desc">Benchmark only the specified packages. See <ahref="https://doc.rust-lang.org/cargo/commands/cargo-pkgid.md">cargo-pkgid(1)</a> for the
83
+
<ddclass="option-desc">Benchmark only the specified packages. See <ahref="cargo-pkgid.html">cargo-pkgid(1)</a> for the
84
84
SPEC format. This flag may be specified multiple times.</dd>
85
85
86
86
@@ -224,10 +224,10 @@ architecture. The general format of the triple is
224
224
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
225
225
list of supported targets.</p>
226
226
<p>This may also be specified with the <code>build.target</code>
<ddclass="option-desc">Build only the specified packages. See <ahref="https://doc.rust-lang.org/cargo/commands/cargo-pkgid.md">cargo-pkgid(1)</a> for the
35
+
<ddclass="option-desc">Build only the specified packages. See <ahref="cargo-pkgid.html">cargo-pkgid(1)</a> for the
36
36
SPEC format. This flag may be specified multiple times.</dd>
37
37
38
38
@@ -163,10 +163,10 @@ architecture. The general format of the triple is
163
163
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
164
164
list of supported targets.</p>
165
165
<p>This may also be specified with the <code>build.target</code>
0 commit comments