[PATCH] Documentation: Add asciidoc.conf file and gitlink: macro
[git/dscho.git] / Documentation / asciidoc.conf
blobbaefb2f0daccf65dbb1bfc5724c508b9be4468ec
1 ## gitlink: macro
3 # Usage: gitlink:command[manpage-section]
5 # Note, {0} is the manpage section, while {target} is the command.
7 # Show GIT link as: <command>(<section>); if section is defined, else just show
8 # the command.
10 ifdef::backend-docbook[]
11 [gitlink-inlinemacro]
12 {0%{target}}
13 {0#<citerefentry>}
14 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
15 {0#</citerefentry>}
16 endif::backend-docbook[]
18 ifdef::backend-xhtml11[]
19 [gitlink-inlinemacro]
20 <a href="{target}.html">{target}{0?({0})}</a>
21 endif::backend-xhtml11[]