3 # Usage: gitlink: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
15 ifdef::backend-docbook[]
19 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
21 endif::backend-docbook[]
23 ifdef::backend-docbook[]
24 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
26 <example><title>{title}</title>
31 endif::backend-docbook[]
33 ifdef::backend-xhtml11[]
35 <a href="{target}.html">{target}{0?({0})}</a>
36 endif::backend-xhtml11[]