[PATCH] Fix guilt to work correctly even if the refs are packed
[guilt.git] / Documentation / asciidoc.conf
blob3a2fcb8af2438517d681786188f5354f4ee745e0
1 ## guiltlink: macro
3 # Usage: guiltlink:command[manpage-section]
5 # Note, {0} is the manpage section, while {target} is the command.
7 # Show guilt link as: <command>(<section>); if section is defined, else just show
8 # the command.
10 [attributes]
11 caret=^
12 startsb=&#91;
13 endsb=&#93;
14 tilde=&#126;
16 ifdef::backend-docbook[]
17 [guiltlink-inlinemacro]
18 {0%{target}}
19 {0#<citerefentry>}
20 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
21 {0#</citerefentry>}
22 endif::backend-docbook[]
25 ifdef::backend-docbook[]
26 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
27 [listingblock]
28 <example><title>{title}</title>
29 <literallayout>
31 </literallayout>
32 {title#}</example>
33 endif::backend-docbook[]
35 ifdef::backend-xhtml11[]
36 [guiltlink-inlinemacro]
37 <a href="{target}.html">{target}{0?({0})}</a>
38 endif::backend-xhtml11[]