format-patch: resurrect extra headers from config
[git/spearce.git] / Documentation / asciidoc.conf
blob7ce71510de52805c2bfff59f4c13d8267b9e3f25
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 caret=^
13 ifdef::backend-docbook[]
14 [gitlink-inlinemacro]
15 {0%{target}}
16 {0#<citerefentry>}
17 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
18 {0#</citerefentry>}
19 endif::backend-docbook[]
21 ifdef::backend-docbook[]
22 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
23 [listingblock]
24 <example><title>{title}</title>
25 <literallayout>
27 </literallayout>
28 {title#}</example>
29 endif::backend-docbook[]
31 ifdef::backend-xhtml11[]
32 [gitlink-inlinemacro]
33 <a href="{target}.html">{target}{0?({0})}</a>
34 endif::backend-xhtml11[]