3 # Usage: linkgit:command[manpage-section]
5 # Note, {0} is the manpage section, while {target} is the command.
7 # Show GIT link as: <command>(<section>); if section is defined, else just show
11 (?su)[\\]?(?P<name>linkgit):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
21 ifdef::backend-docbook[]
25 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
27 endif::backend-docbook[]
29 ifdef::doctype-manpage[]
30 ifdef::backend-docbook[]
32 template::[header-declarations]
35 <refentrytitle>{mantitle}</refentrytitle>
36 <manvolnum>{manvolnum}</manvolnum>
37 <refmiscinfo class="source">Postfix Tools</refmiscinfo>
38 <refmiscinfo class="version">{pft_version}</refmiscinfo>
39 <refmiscinfo class="manual">Postfix Tools Manual</refmiscinfo>
42 <refname>{manname}</refname>
43 <refpurpose>{manpurpose}</refpurpose>
45 endif::backend-docbook[]
46 endif::doctype-manpage[]
48 ifdef::backend-xhtml11[]
50 <a href="{target}.html">{target}{0?({0})}</a>
51 endif::backend-xhtml11[]