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
18 ifdef::backend-docbook[]
22 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
24 endif::backend-docbook[]
26 ifdef::backend-docbook[]
27 ifndef::docbook-xsl-172[]
28 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
29 # v1.72 breaks with this because it replaces dots not in roff requests.
31 <example><title>{title}</title>
33 ifdef::doctype-manpage[]
35 endif::doctype-manpage[]
37 ifdef::doctype-manpage[]
39 endif::doctype-manpage[]
42 endif::docbook-xsl-172[]
44 ifdef::docbook-xsl-172[]
45 ifdef::doctype-manpage[]
46 # The following two small workarounds insert a simple paragraph after screen
48 <example><title>{title}</title>
51 </screen><simpara></simpara>
55 <formalpara{id? id="{id}"}><title>{title}</title><para>
56 {title%}<literallayout{id? id="{id}"}>
57 {title#}<literallayout>
59 </literallayout><simpara></simpara>
60 {title#}</para></formalpara>
61 endif::doctype-manpage[]
62 endif::docbook-xsl-172[]
63 endif::backend-docbook[]
65 ifdef::doctype-manpage[]
66 ifdef::backend-docbook[]
68 template::[header-declarations]
71 <refentrytitle>{mantitle}</refentrytitle>
72 <manvolnum>{manvolnum}</manvolnum>
73 <refmiscinfo class="source">Git</refmiscinfo>
74 <refmiscinfo class="version">{git_version}</refmiscinfo>
75 <refmiscinfo class="manual">Git Manual</refmiscinfo>
78 <refname>{manname}</refname>
79 <refpurpose>{manpurpose}</refpurpose>
81 endif::backend-docbook[]
82 endif::doctype-manpage[]
84 ifdef::backend-xhtml11[]
86 <a href="{target}.html">{target}{0?({0})}</a>
87 endif::backend-xhtml11[]