Update callers of check_ref_format()
[git] / Documentation / asciidoc.conf
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
10 [attributes]
11 plus=&#43;
12 caret=&#94;
13 startsb=&#91;
14 endsb=&#93;
15 tilde=&#126;
16
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[]
24
25 ifdef::backend-docbook[]
26 ifndef::docbook-xsl-172[]
27 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
28 # v1.72 breaks with this because it replaces dots not in roff requests.
29 [listingblock]
30 <example><title>{title}</title>
31 <literallayout>
32 ifdef::doctype-manpage[]
33 &#10;.ft C&#10;
34 endif::doctype-manpage[]
35 |
36 ifdef::doctype-manpage[]
37 &#10;.ft&#10;
38 endif::doctype-manpage[]
39 </literallayout>
40 {title#}</example>
41 endif::docbook-xsl-172[]
42 endif::backend-docbook[]
43
44 ifdef::doctype-manpage[]
45 ifdef::backend-docbook[]
46 [header]
47 template::[header-declarations]
48 <refentry>
49 <refmeta>
50 <refentrytitle>{mantitle}</refentrytitle>
51 <manvolnum>{manvolnum}</manvolnum>
52 <refmiscinfo class="source">Git</refmiscinfo>
53 <refmiscinfo class="version">{git_version}</refmiscinfo>
54 <refmiscinfo class="manual">Git Manual</refmiscinfo>
55 </refmeta>
56 <refnamediv>
57   <refname>{manname}</refname>
58   <refpurpose>{manpurpose}</refpurpose>
59 </refnamediv>
60 endif::backend-docbook[]
61 endif::doctype-manpage[]
62
63 ifdef::backend-xhtml11[]
64 [gitlink-inlinemacro]
65 <a href="{target}.html">{target}{0?({0})}</a>
66 endif::backend-xhtml11[]