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
17 ifdef::backend-docbook[]
21 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
23 endif::backend-docbook[]
25 ifdef::backend-docbook[]
26 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
28 <example><title>{title}</title>
30 ifdef::doctype-manpage[]
32 endif::doctype-manpage[]
34 ifdef::doctype-manpage[]
36 endif::doctype-manpage[]
39 endif::backend-docbook[]
41 ifdef::doctype-manpage[]
42 ifdef::backend-docbook[]
44 template::[header-declarations]
47 <refentrytitle>{mantitle}</refentrytitle>
48 <manvolnum>{manvolnum}</manvolnum>
49 <refmiscinfo class="source">Git</refmiscinfo>
50 <refmiscinfo class="version">{git_version}</refmiscinfo>
51 <refmiscinfo class="manual">Git Manual</refmiscinfo>
54 <refname>{manname}</refname>
55 <refpurpose>{manpurpose}</refpurpose>
57 endif::backend-docbook[]
58 endif::doctype-manpage[]
60 ifdef::backend-xhtml11[]
62 <a href="{target}.html">{target}{0?({0})}</a>
63 endif::backend-xhtml11[]