.. | ||
extension.rb | ||
README.adoc |
It’s a inline macro that easily links manual pages from an online manpage service like Debian Manpages.
Synopsis
man:$MANPAGE[$VOLNUM]
Attributes
There are optional attributes that can be passed.
-
volnum
expects the section number where the manual page belongs to. This attribute is another way to indicate the section in case you start to use more attributes. The value fromvolnum
attribute has higher precedence. When both the positional argument andvolnum
attribute is passed, thevolnum
attribute will be used. -
service
is the domain of the online manpage service. Take note this attribute is only used inhtml
backend.This is an attribute that expects certain values:
-
debian
uses https://manpages.debian.org. This is also the default service when no value is given. -
archlinux
uses https://man.archlinux.org. -
opensuse
uses https://manpages.opensuse.org. -
voidlinux
use https://man.voidlinux.org. -
none
uses none at all. :) This is useful if the reference is not found anywhere.
Any invalid value raises an error.
-
Example usage
-
man:crontab[5]
will link to the default manpage service withcrontab(5)
manual page. -
man:man[volnum=1, service=archlinux]
will link to the man manpage from man.archlinux.org.