cpuset/doc/asciidoc.conf
2009-12-07 21:52:22 -07:00

60 lines
1.3 KiB
Plaintext

## csetlink: macro
#
# Usage: csetlink:command[manpage-section]
#
# Note, {0} is the manpage section, while {target} is the command.
#
# Show cset link as: <command>(<section>); if section is defined, else just show
# the command.
[attributes]
caret=^
startsb=&#91;
endsb=&#93;
tilde=&#126;
ifdef::backend-docbook[]
[manlink-inlinemacro]
{0%{target}}
{0#<citerefentry>}
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
{0#</citerefentry>}
endif::backend-docbook[]
ifdef::backend-docbook[]
# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
[listingblock]
<example><title>{title}</title>
<literallayout>
|
</literallayout>
{title#}</example>
endif::backend-docbook[]
ifdef::backend-xhtml11[]
[manlink-inlinemacro]
<a href="{target}.html">{target}{0?({0})}</a>
endif::backend-xhtml11[]
# csetlink
ifdef::backend-docbook[]
[csetlink-inlinemacro]
<citerefentry>
<refentrytitle>cset-{target}</refentrytitle><manvolnum>1</manvolnum>
</citerefentry>
endif::backend-docbook[]
ifdef::backend-xhtml11[]
[csetlink-inlinemacro]
<a href="cset-{target}.html">cset {target}(1)</a>
endif::backend-xhtml11[]
# csetdesc
[csetdesc-inlinemacro]
{sys:../cset help|grep " {target}" | tr -s ' '| cut -d' ' -f3-}
[csetdesc-blockmacro]
csetlink:{target}[]::
csetdesc:{target}[]