Skip to content

Add manpage role for autolinking to manpages#26

Merged
s-makin merged 4 commits intoubuntu:mainfrom
s-makin:manpages-links
May 30, 2025
Merged

Add manpage role for autolinking to manpages#26
s-makin merged 4 commits intoubuntu:mainfrom
s-makin:manpages-links

Conversation

@s-makin
Copy link
Copy Markdown
Collaborator

@s-makin s-makin commented May 30, 2025

Description

This PR adds a functionality from the Packaging Guide, which allows use of the {manpage} or :manpage: role (in markdown or rST respectively).

Why is this needed?

It means we don't need to keep updating manpage links every time there's a new update.
Using the manpage role autopopulates the link to the relevant manpage on the version of Ubuntu the reader is using.

Usage example:

{manpage}`autopkgtest(1)`
:manpage:`autopkgtest(1)`

Renders the link to the manpage automatically as:
https://manpages.ubuntu.com/manpages/plucky/en/man1/autopkgtest.1.html

Thanks to @dviererbe for the initial implementation that formed the basis of this PR.

This PR fixes: #24

@s-makin s-makin requested a review from rkratky as a code owner May 30, 2025 11:43
@s-makin s-makin merged commit f476d37 into ubuntu:main May 30, 2025
2 of 3 checks passed
@s-makin s-makin deleted the manpages-links branch May 30, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Housekeeping] Set up manpages links

1 participant