Fix man page links inside option
blocks.
#8793
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Links inside
{{#option}}
blocks were erroneously being converted to absolute links when emitting themd
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).