Primitive option parsing; rendering generalizations
[tig] / asciidoc.conf
CommitLineData
a7bc4b14
JF
1## gitlink: macro
2#
3# Usage: gitlink:command[manpage-section]
4#
5# Note, {0} is the manpage section, while {target} is the command.
6#
7# Show GIT link as: <command>(<section>); if section is defined, else just show
8# the command.
9
10ifdef::backend-docbook[]
11[gitlink-inlinemacro]
12{0%{target}}
13{0#<citerefentry>}
14{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
15{0#</citerefentry>}
16endif::backend-docbook[]
17
18ifdef::backend-xhtml11[]
19[gitlink-inlinemacro]
20<a href="{target}{0?.{0}}.html">{target}{0?({0})}</a>
21endif::backend-xhtml11[]
22
23[attributes]
24# Five non breaking spaces used for option indentation in the quick reference
25cg-refopt=&#160;&#160;&#160;&#160;&#160;