]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/asciidoc.conf
Start the 2.46 cycle
[thirdparty/git.git] / Documentation / asciidoc.conf
CommitLineData
5162e697 1## linkgit: macro
d1c2e113 2#
5162e697 3# Usage: linkgit:command[manpage-section]
d1c2e113
SV
4#
5# Note, {0} is the manpage section, while {target} is the command.
6#
48a8c26c 7# Show Git link as: <command>(<section>); if section is defined, else just show
d1c2e113
SV
8# the command.
9
9c0c1b1f
AB
10[macros]
11(?su)[\\]?(?P<name>linkgit):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
12
babfaba2 13[attributes]
c0a5e2d4 14asterisk=&#42;
4c7100a9
JH
15plus=&#43;
16caret=&#94;
a3e65d74
JF
17startsb=&#91;
18endsb=&#93;
f1005987 19backslash=&#92;
54bd2558 20tilde=&#126;
438ded45 21apostrophe=&#39;
1c3acfcd 22backtick=&#96;
28394787 23litdd=&#45;&#45;
babfaba2 24
d1c2e113 25ifdef::backend-docbook[]
5162e697 26[linkgit-inlinemacro]
d1c2e113
SV
27{0%{target}}
28{0#<citerefentry>}
29{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
30{0#</citerefentry>}
31endif::backend-docbook[]
32
e920b565 33ifdef::backend-docbook[]
9b6f84d2
JF
34ifdef::doctype-manpage[]
35# The following two small workarounds insert a simple paragraph after screen
36[listingblock]
37<example><title>{title}</title>
c2a7f5d4 38<literallayout class="monospaced">
9b6f84d2 39|
dad32115 40</literallayout><simpara></simpara>
9b6f84d2
JF
41{title#}</example>
42
43[verseblock]
44<formalpara{id? id="{id}"}><title>{title}</title><para>
45{title%}<literallayout{id? id="{id}"}>
46{title#}<literallayout>
47|
0c04f527 48</literallayout>
9b6f84d2 49{title#}</para></formalpara>
0c04f527 50{title%}<simpara></simpara>
9b6f84d2 51endif::doctype-manpage[]
e920b565
FD
52endif::backend-docbook[]
53
d1c2e113 54ifdef::backend-xhtml11[]
60475183
JK
55[attributes]
56git-relative-html-prefix=
5162e697 57[linkgit-inlinemacro]
fe77b416 58<a href="{git-relative-html-prefix}{target}.html">{target}{0?({0})}</a>
d1c2e113 59endif::backend-xhtml11[]