2007-12-29 01:24:15 -05:00
|
|
|
## linkman: macro
|
2007-07-01 17:55:44 -04:00
|
|
|
# Inspired by/borrowed from the GIT source tree at Documentation/asciidoc.conf
|
|
|
|
#
|
2007-12-29 01:24:15 -05:00
|
|
|
# Usage: linkman:command[manpage-section]
|
2007-07-01 17:55:44 -04:00
|
|
|
#
|
|
|
|
# Note, {0} is the manpage section, while {target} is the command.
|
|
|
|
#
|
|
|
|
# Show man link as: <command>(<section>); if section is defined, else just show
|
|
|
|
# the command.
|
|
|
|
|
2009-01-11 23:09:40 -05:00
|
|
|
[macros]
|
|
|
|
(?su)[\\]?(?P<name>linkman):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
|
|
|
|
|
2007-07-01 17:55:44 -04:00
|
|
|
[attributes]
|
2009-01-11 23:09:40 -05:00
|
|
|
asterisk=*
|
2007-07-01 17:55:44 -04:00
|
|
|
plus=+
|
|
|
|
caret=^
|
|
|
|
startsb=[
|
|
|
|
endsb=]
|
|
|
|
tilde=~
|
|
|
|
|
|
|
|
ifdef::backend-docbook[]
|
2007-12-29 01:24:15 -05:00
|
|
|
[linkman-inlinemacro]
|
2007-07-01 17:55:44 -04:00
|
|
|
{0%{target}}
|
|
|
|
{0#<citerefentry>}
|
|
|
|
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
|
|
|
|
{0#</citerefentry>}
|
|
|
|
endif::backend-docbook[]
|
|
|
|
|
|
|
|
ifdef::backend-docbook[]
|
2007-12-29 01:24:15 -05:00
|
|
|
ifndef::docbook-xsl-172[]
|
2007-07-01 17:55:44 -04:00
|
|
|
# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
|
2007-12-29 01:24:15 -05:00
|
|
|
# v1.72 breaks with this because it replaces dots not in roff requests.
|
2007-07-01 17:55:44 -04:00
|
|
|
[listingblock]
|
|
|
|
<example><title>{title}</title>
|
|
|
|
<literallayout>
|
|
|
|
|
|
|
|
|
</literallayout>
|
|
|
|
{title#}</example>
|
2007-12-29 01:24:15 -05:00
|
|
|
endif::docbook-xsl-172[]
|
2007-07-01 17:55:44 -04:00
|
|
|
endif::backend-docbook[]
|
|
|
|
|
|
|
|
ifdef::doctype-manpage[]
|
|
|
|
ifdef::backend-docbook[]
|
|
|
|
[header]
|
|
|
|
template::[header-declarations]
|
|
|
|
<refentry>
|
2007-07-06 01:56:11 -04:00
|
|
|
<refentryinfo>
|
|
|
|
<date>{pacman_date}</date>
|
|
|
|
</refentryinfo>
|
2007-07-01 17:55:44 -04:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>{mantitle}</refentrytitle>
|
|
|
|
<manvolnum>{manvolnum}</manvolnum>
|
|
|
|
<refmiscinfo class="source">Pacman</refmiscinfo>
|
|
|
|
<refmiscinfo class="version">{pacman_version}</refmiscinfo>
|
|
|
|
<refmiscinfo class="manual">Pacman Manual</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>{manname}</refname>
|
|
|
|
<refpurpose>{manpurpose}</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
endif::backend-docbook[]
|
|
|
|
endif::doctype-manpage[]
|
|
|
|
|
|
|
|
ifdef::backend-xhtml11[]
|
2007-12-29 01:24:15 -05:00
|
|
|
[linkman-inlinemacro]
|
2007-07-06 16:54:18 -04:00
|
|
|
<a href="{target}.{0}.html">{target}{0?({0})}</a>
|
2007-07-01 17:55:44 -04:00
|
|
|
endif::backend-xhtml11[]
|