version/0.3
[archives2git.git] / asciidoc.conf
blobd75c5803a34bbb8cd8d29854e9f5d5d30fac6dc2
1 # asciidoc.conf - AsciiDoc configuration file
3 [attributes]
4 encoding=UTF-8
6 ## linkpage: macro
7 #   Taken from git; modified
9 # Usage: linkpage:command[manpage-section]
10 # Usage: linkpage:htmlfile[]
12 # Note, {0} is the manpage section, while {target} is the command.
14 # Show GIT link as: <command>(<section>); if section is defined, else just show
15 # the command.
17 [macros]
18 (?su)[\\]?(?P<name>linkpage):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
20 [attributes]
21 asterisk=&#42;
22 plus=&#43;
23 caret=&#94;
24 startsb=&#91;
25 endsb=&#93;
26 backslash=&#92;
27 tilde=&#126;
28 apostrophe=&#39;
29 backtick=&#96;
30 litdd=&#45;&#45;
32 ifdef::backend-docbook[]
33 [linkpage-inlinemacro]
34 {0%{target}}
35 {0#<citerefentry>}
36 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
37 {0#</citerefentry>}
38 endif::backend-docbook[]
40 ifdef::backend-docbook[]
41 ifndef::git-asciidoc-no-roff[]
42 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
43 # v1.72 breaks with this because it replaces dots not in roff requests.
44 [listingblock]
45 <example><title>{title}</title>
46 <literallayout>
47 ifdef::doctype-manpage[]
48 &#10;.ft C&#10;
49 endif::doctype-manpage[]
51 ifdef::doctype-manpage[]
52 &#10;.ft&#10;
53 endif::doctype-manpage[]
54 </literallayout>
55 {title#}</example>
56 endif::git-asciidoc-no-roff[]
58 ifdef::git-asciidoc-no-roff[]
59 ifdef::doctype-manpage[]
60 # The following two small workarounds insert a simple paragraph after screen
61 [listingblock]
62 <example><title>{title}</title>
63 <literallayout>
65 </literallayout><simpara></simpara>
66 {title#}</example>
68 [verseblock]
69 <formalpara{id? id="{id}"}><title>{title}</title><para>
70 {title%}<literallayout{id? id="{id}"}>
71 {title#}<literallayout>
73 </literallayout>
74 {title#}</para></formalpara>
75 {title%}<simpara></simpara>
76 endif::doctype-manpage[]
77 endif::git-asciidoc-no-roff[]
78 endif::backend-docbook[]
80 ifdef::doctype-manpage[]
81 ifdef::backend-docbook[]
82 [header]
83 template::[header-declarations]
84 <refentry>
85 <refmeta>
86 <refentrytitle>{mantitle}</refentrytitle>
87 <manvolnum>{manvolnum}</manvolnum>
88 <refmiscinfo class="source">{packagename}</refmiscinfo>
89 <refmiscinfo class="version">{version}</refmiscinfo>
90 <refmiscinfo class="manual">{packagename} commands</refmiscinfo>
91 </refmeta>
92 <refnamediv>
93   <refname>{manname}</refname>
94   <refpurpose>{manpurpose}</refpurpose>
95 </refnamediv>
96 endif::backend-docbook[]
97 endif::doctype-manpage[]
99 ifdef::backend-xhtml11[]
100 [attributes]
101 git-relative-html-prefix=
102 [linkpage-inlinemacro]
103 <a href="{git-relative-html-prefix}{target}{0?.{0}}.html">{target}{0?({0})}</a>
104 endif::backend-xhtml11[]
107 #ifdef::readme[]
108 #[replacements]
109 #(^|[^-\\])--($|[^-])=\1--\2
110 #endif::readme[]