3 # Usage: linkperf:command[manpage-section]
5 # Note, {0} is the manpage section, while {target} is the command.
7 # Show PERF link as: <command>(<section>); if section is defined, else just show
11 (?su)[\\]?(?P<name>linkperf):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
21 ifdef::backend-docbook[]
22 [linkperf-inlinemacro]
25 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
27 endif::backend-docbook[]
29 ifdef::backend-docbook[]
30 ifndef::perf-asciidoc-no-roff[]
31 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
32 # v1.72 breaks with this because it replaces dots not in roff requests.
34 <example><title>{title}</title>
36 ifdef::doctype-manpage[]
38 endif::doctype-manpage[]
40 ifdef::doctype-manpage[]
42 endif::doctype-manpage[]
45 endif::perf-asciidoc-no-roff[]
47 ifdef::perf-asciidoc-no-roff[]
48 ifdef::doctype-manpage[]
49 # The following two small workarounds insert a simple paragraph after screen
51 <example><title>{title}</title>
54 </literallayout><simpara></simpara>
58 <formalpara{id? id="{id}"}><title>{title}</title><para>
59 {title%}<literallayout{id? id="{id}"}>
60 {title#}<literallayout>
63 {title#}</para></formalpara>
64 {title%}<simpara></simpara>
65 endif::doctype-manpage[]
66 endif::perf-asciidoc-no-roff[]
67 endif::backend-docbook[]
69 ifdef::doctype-manpage[]
70 ifdef::backend-docbook[]
72 template::[header-declarations]
75 <refentryinfo><date>{perf_date}</date></refentryinfo>
78 <refentrytitle>{mantitle}</refentrytitle>
79 <manvolnum>{manvolnum}</manvolnum>
80 <refmiscinfo class="source">perf</refmiscinfo>
81 <refmiscinfo class="version">{perf_version}</refmiscinfo>
82 <refmiscinfo class="manual">perf Manual</refmiscinfo>
85 <refname>{manname}</refname>
86 <refpurpose>{manpurpose}</refpurpose>
88 endif::backend-docbook[]
89 endif::doctype-manpage[]
91 ifdef::backend-xhtml11[]
92 [linkperf-inlinemacro]
93 <a href="{target}.html">{target}{0?({0})}</a>
94 endif::backend-xhtml11[]