mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-31 10:58:11 +00:00
.. | ||
extension.rb | ||
README.adoc |
Table of Contents
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. -
domain
is the domain of the online manpage service. By default, it usesmanpages.debian.org
.
Example usage
-
man:crontab[5]
will link to the default manpage service withcrontab(5)
manual page. -
man:man[volnum=1, domain=man.archlinux.org/man]
will link to the man manpage from man.archlinux.org.