Exploration
[tig] / asciidoc.conf
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
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[]
17
18 ifdef::backend-xhtml11[]
19 [gitlink-inlinemacro]
20 <a href="{target}{0?.{0}}.html">{target}{0?({0})}</a>
21 endif::backend-xhtml11[]
22
23 [attributes]
24 # Five non breaking spaces used for option indentation in the quick reference
25 cg-refopt=&#160;&#160;&#160;&#160;&#160;