Restructure option management code to separate section
[tig.git] / asciidoc.conf
blob90fdb6ad71cc437f0cce15d77d879fd2ba200cb3
1 ifdef::backend-docbook[]
2 [manpage-inlinemacro]
3 {0%{target}}
4 {0#<citerefentry>}
5 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
6 {0#</citerefentry>}
7 endif::backend-docbook[]
9 ifdef::backend-xhtml11[]
10 [manpage-inlinemacro]
11 <a href="{target}{0?.{0}}.html">{target}{0?({0})}</a>
12 endif::backend-xhtml11[]
14 ifdef::doctype-manpage[]
15 ifdef::backend-docbook[]
16 [header]
17 template::[header-declarations]
18 <refentry>
19 <refmeta>
20 <refentrytitle>{mantitle}</refentrytitle>
21 <manvolnum>{manvolnum}</manvolnum>
22 <refmiscinfo class="source">Tig</refmiscinfo>
23 <refmiscinfo class="version">{version}</refmiscinfo>
24 <refmiscinfo class="manual">Tig Manual</refmiscinfo>
25 </refmeta>
26 <refnamediv>
27   <refname>{manname}</refname>
28   <refpurpose>{manpurpose}</refpurpose>
29 </refnamediv>
31 # The following two small workarounds insert a simple paragraph after screen
34 [listingblock]
35 <example><title>{title}</title>
36 <screen>
38 </screen><simpara></simpara>
39 {title#}</example>
41 [verseblock]
42 <formalpara{id? id="{id}"}><title>{title}</title><para>
43 {title%}<literallayout{id? id="{id}"}>
44 {title#}<literallayout>
46 </literallayout><simpara></simpara>
47 {title#}</para></formalpara>
48 endif::backend-docbook[]
49 endif::doctype-manpage[]
51 ifdef::readme[]
52 # No header or footers for README.html
53 [header]
54 <div style="font-family: sans-serif;">
55 <h1>{doctitle}</h1>
57 [footer]
58 </div>
60 [replacements]
61 (^|[^-\\])--($|[^-])=\1--\2
62 endif::readme[]