]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/asciidoc.conf
Error in test description of t1200-tutorial
[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=^
a3e65d74
JF
12startsb=&#91;
13endsb=&#93;
babfaba2 14
d1c2e113
SV
15ifdef::backend-docbook[]
16[gitlink-inlinemacro]
17{0%{target}}
18{0#<citerefentry>}
19{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
20{0#</citerefentry>}
21endif::backend-docbook[]
22
e920b565
FD
23ifdef::backend-docbook[]
24# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
25[listingblock]
26<example><title>{title}</title>
27<literallayout>
28|
29</literallayout>
30{title#}</example>
31endif::backend-docbook[]
32
d1c2e113
SV
33ifdef::backend-xhtml11[]
34[gitlink-inlinemacro]
35<a href="{target}.html">{target}{0?({0})}</a>
36endif::backend-xhtml11[]
babfaba2
JF
37
38