| 1 |
# |
| 2 |
# Usage: linkaf:command[manpage-section] |
| 3 |
# |
| 4 |
# Note, {0} is the manpage section, while {target} is the command. |
| 5 |
# |
| 6 |
# Show Audio File Library link as: <command>(<section>); if section is |
| 7 |
# defined, else just show the command. |
| 8 |
|
| 9 |
[macros] |
| 10 |
(?su)[\\]?(?P<name>linkaf):(?P<target>\S*?)\[(?P<attrlist>.*?)\]= |
| 11 |
|
| 12 |
ifdef::backend-docbook[] |
| 13 |
[linkaf-inlinemacro] |
| 14 |
{0%{target}} |
| 15 |
{0#<citerefentry>} |
| 16 |
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>} |
| 17 |
{0#</citerefentry>} |
| 18 |
endif::backend-docbook[] |
| 19 |
|
| 20 |
ifdef::backend-html4[] |
| 21 |
[linkaf-inlinemacro] |
| 22 |
<a href="{target}.{0}.html">{target}({0})</a> |
| 23 |
endif::backend-html4[] |