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 ifndef::docbook-xsl-172[]
27 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
28 # v1.72 breaks with this because it replaces dots not in roff requests.
30 <example><title>{title}</title>
32 ifdef::doctype-manpage[]
34 endif::doctype-manpage[]
36 ifdef::doctype-manpage[]
38 endif::doctype-manpage[]
41 endif::docbook-xsl-172[]
42 endif::backend-docbook[]
44 ifdef::doctype-manpage[]
45 ifdef::backend-docbook[]
47 template::[header-declarations]
50 <refentrytitle>{mantitle}</refentrytitle>
51 <manvolnum>{manvolnum}</manvolnum>
52 <refmiscinfo class="source">Git</refmiscinfo>
53 <refmiscinfo class="version">{git_version}</refmiscinfo>
54 <refmiscinfo class="manual">Git Manual</refmiscinfo>
57 <refname>{manname}</refname>
58 <refpurpose>{manpurpose}</refpurpose>
60 endif::backend-docbook[]
61 endif::doctype-manpage[]
63 ifdef::backend-xhtml11[]
65 <a href="{target}.html">{target}{0?({0})}</a>
66 endif::backend-xhtml11[]