Path: blob/master/tools/perf/Documentation/asciidoc.conf
10821 views
## linkperf: macro1#2# Usage: linkperf:command[manpage-section]3#4# Note, {0} is the manpage section, while {target} is the command.5#6# Show PERF link as: <command>(<section>); if section is defined, else just show7# the command.89[macros]10(?su)[\\]?(?P<name>linkperf):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=1112[attributes]13asterisk=*14plus=+15caret=^16startsb=[17endsb=]18tilde=~1920ifdef::backend-docbook[]21[linkperf-inlinemacro]22{0%{target}}23{0#<citerefentry>}24{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}25{0#</citerefentry>}26endif::backend-docbook[]2728ifdef::backend-docbook[]29ifndef::perf-asciidoc-no-roff[]30# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.31# v1.72 breaks with this because it replaces dots not in roff requests.32[listingblock]33<example><title>{title}</title>34<literallayout>35ifdef::doctype-manpage[]36 .ft C 37endif::doctype-manpage[]38|39ifdef::doctype-manpage[]40 .ft 41endif::doctype-manpage[]42</literallayout>43{title#}</example>44endif::perf-asciidoc-no-roff[]4546ifdef::perf-asciidoc-no-roff[]47ifdef::doctype-manpage[]48# The following two small workarounds insert a simple paragraph after screen49[listingblock]50<example><title>{title}</title>51<literallayout>52|53</literallayout><simpara></simpara>54{title#}</example>5556[verseblock]57<formalpara{id? id="{id}"}><title>{title}</title><para>58{title%}<literallayout{id? id="{id}"}>59{title#}<literallayout>60|61</literallayout>62{title#}</para></formalpara>63{title%}<simpara></simpara>64endif::doctype-manpage[]65endif::perf-asciidoc-no-roff[]66endif::backend-docbook[]6768ifdef::doctype-manpage[]69ifdef::backend-docbook[]70[header]71template::[header-declarations]72<refentry>73<refmeta>74<refentrytitle>{mantitle}</refentrytitle>75<manvolnum>{manvolnum}</manvolnum>76<refmiscinfo class="source">perf</refmiscinfo>77<refmiscinfo class="version">{perf_version}</refmiscinfo>78<refmiscinfo class="manual">perf Manual</refmiscinfo>79</refmeta>80<refnamediv>81<refname>{manname}</refname>82<refpurpose>{manpurpose}</refpurpose>83</refnamediv>84endif::backend-docbook[]85endif::doctype-manpage[]8687ifdef::backend-xhtml11[]88[linkperf-inlinemacro]89<a href="{target}.html">{target}{0?({0})}</a>90endif::backend-xhtml11[]919293