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: htmllink:url[text]
51 ifdef::backend-docbook[]
52 [htmllink-inlinemacro]
54 endif::backend-docbook[]
56 ifdef::backend-xhtml11[]
57 [htmllink-inlinemacro]
58 <a href="{target}">{0}</a>
59 endif::backend-xhtml11[]
63 # Usage: manlink:command[manpage-section]
65 # Note, {0} is the manpage section, while {target} is the command.
67 # Show link as: <command>(<section>); if section is defined, else just
70 ifdef::backend-docbook[]
74 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
76 endif::backend-docbook[]
78 ifdef::backend-xhtml11[]
80 <a href="{target}.html">{target}{0?({0})}</a>
81 endif::backend-xhtml11[]
85 # Usage: stglink:command[]
87 # Show StGit link as: stg-<command>(1) in man pages, stg <command> in
90 ifdef::backend-docbook[]
93 <refentrytitle>stg-{target}</refentrytitle><manvolnum>1</manvolnum>
95 endif::backend-docbook[]
97 ifdef::backend-xhtml11[]
99 <a href="stg-{target}.html">stg {target}</a>
100 endif::backend-xhtml11[]
104 # Usage: stgsublink:command[]
106 # Show StGit link as: <command> in man pages, stg <command> in
109 ifdef::backend-docbook[]
110 [stgsublink-inlinemacro]
112 endif::backend-docbook[]
114 ifdef::backend-xhtml11[]
115 [stgsublink-inlinemacro]
116 <a href="stg-{target}.html">{target}</a>
117 endif::backend-xhtml11[]