]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/asciidoc.conf
Merge branch 'ml/cvsserver'
[thirdparty/git.git] / Documentation / asciidoc.conf
CommitLineData
d1c2e113
SV
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
babfaba2
JF
10[attributes]
11caret=^
12
d1c2e113
SV
13ifdef::backend-docbook[]
14[gitlink-inlinemacro]
15{0%{target}}
16{0#<citerefentry>}
17{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
18{0#</citerefentry>}
19endif::backend-docbook[]
20
21ifdef::backend-xhtml11[]
22[gitlink-inlinemacro]
23<a href="{target}.html">{target}{0?({0})}</a>
24endif::backend-xhtml11[]
babfaba2
JF
25
26