The twentieth batch
[git.git] / Documentation / asciidoc.conf
blob60f76f43edab759a5587835fc5cb58ce0d8a7b4d
1 ## linkgit: macro
3 # Usage: linkgit:command[manpage-section]
5 # Note, {0} is the manpage section, while {target} is the command.
7 # Show Git link as: <command>(<section>); if section is defined, else just show
8 # the command.
10 [macros]
11 (?su)[\\]?(?P<name>linkgit):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
13 [attributes]
14 asterisk=&#42;
15 plus=&#43;
16 caret=&#94;
17 startsb=&#91;
18 endsb=&#93;
19 backslash=&#92;
20 tilde=&#126;
21 apostrophe=&#39;
22 backtick=&#96;
23 litdd=&#45;&#45;
25 ifdef::backend-docbook[]
26 [linkgit-inlinemacro]
27 {0%{target}}
28 {0#<citerefentry>}
29 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
30 {0#</citerefentry>}
31 endif::backend-docbook[]
33 ifdef::backend-docbook[]
34 ifdef::doctype-manpage[]
35 # The following two small workarounds insert a simple paragraph after screen
36 [listingblock]
37 <example><title>{title}</title>
38 <literallayout class="monospaced">
40 </literallayout><simpara></simpara>
41 {title#}</example>
43 [verseblock]
44 <formalpara{id? id="{id}"}><title>{title}</title><para>
45 {title%}<literallayout{id? id="{id}"}>
46 {title#}<literallayout>
48 </literallayout>
49 {title#}</para></formalpara>
50 {title%}<simpara></simpara>
51 endif::doctype-manpage[]
52 endif::backend-docbook[]
54 ifdef::backend-xhtml11[]
55 [attributes]
56 git-relative-html-prefix=
57 [linkgit-inlinemacro]
58 <a href="{git-relative-html-prefix}{target}.html">{target}{0?({0})}</a>
59 endif::backend-xhtml11[]