9 ifdef::backend-docbook[]
10 ifndef::docbook-xsl-172[]
11 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
12 # v1.72 breaks with this because it replaces dots not in roff requests.
14 <example><title>{title}</title>
16 ifdef::doctype-manpage[]
18 endif::doctype-manpage[]
20 ifdef::doctype-manpage[]
22 endif::doctype-manpage[]
25 endif::docbook-xsl-172[]
26 endif::backend-docbook[]
28 ifdef::doctype-manpage[]
29 ifdef::backend-docbook[]
31 template::[header-declarations]
34 <refentrytitle>{mantitle}</refentrytitle>
35 <manvolnum>{manvolnum}</manvolnum>
36 <refmiscinfo class="source">StGit</refmiscinfo>
37 <refmiscinfo class="version">{stgit_version}</refmiscinfo>
38 <refmiscinfo class="manual">StGit Manual</refmiscinfo>
41 <refname>{manname}</refname>
42 <refpurpose>{manpurpose}</refpurpose>
44 endif::backend-docbook[]
45 endif::doctype-manpage[]
49 # Usage: link:command[manpage-section]
51 # Note, {0} is the manpage section, while {target} is the command.
53 # Show link as: <command>(<section>); if section is defined, else just
56 ifdef::backend-docbook[]
60 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
62 endif::backend-docbook[]
64 ifdef::backend-xhtml11[]
66 <a href="{target}.html">{target}{0?({0})}</a>
67 endif::backend-xhtml11[]
71 # Usage: stglink:command[]
73 # Show StGit link as: stg-<command>(1) in man pages, stg <command> in
76 ifdef::backend-docbook[]
79 <refentrytitle>stg-{target}</refentrytitle><manvolnum>1</manvolnum>
81 endif::backend-docbook[]
83 ifdef::backend-xhtml11[]
85 <a href="stg-{target}.html">stg {target}</a>
86 endif::backend-xhtml11[]