Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / git / Documentation / asciidoc.conf
blob6b6220dfdbd6cacb8a05be4995279bbd0487fada
1 ## gitlink: macro
3 # Usage: gitlink: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 [attributes]
11 plus=&#43;
12 caret=&#94;
13 startsb=&#91;
14 endsb=&#93;
15 tilde=&#126;
17 ifdef::backend-docbook[]
18 [gitlink-inlinemacro]
19 {0%{target}}
20 {0#<citerefentry>}
21 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
22 {0#</citerefentry>}
23 endif::backend-docbook[]
25 ifdef::backend-docbook[]
26 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
27 [listingblock]
28 <example><title>{title}</title>
29 <literallayout>
31 </literallayout>
32 {title#}</example>
33 endif::backend-docbook[]
35 ifdef::doctype-manpage[]
36 ifdef::backend-docbook[]
37 [header]
38 template::[header-declarations]
39 <refentry>
40 <refmeta>
41 <refentrytitle>{mantitle}</refentrytitle>
42 <manvolnum>{manvolnum}</manvolnum>
43 <refmiscinfo class="source">Git</refmiscinfo>
44 <refmiscinfo class="version">{git_version}</refmiscinfo>
45 <refmiscinfo class="manual">Git Manual</refmiscinfo>
46 </refmeta>
47 <refnamediv>
48   <refname>{manname}</refname>
49   <refpurpose>{manpurpose}</refpurpose>
50 </refnamediv>
51 endif::backend-docbook[]
52 endif::doctype-manpage[]
54 ifdef::backend-xhtml11[]
55 [gitlink-inlinemacro]
56 <a href="{target}.html">{target}{0?({0})}</a>
57 endif::backend-xhtml11[]