config: Let "unset" delete built-in options too.
[elinks/elinks-j605.git] / doc / asciidoc.conf
bloba1958c1c2489aa20cd44d4073d0d0ec6fbe4fb3b
1 # AsciiDoc configuration file
2 # Copyright (c) Jonas Fonseca <fonseca@diku.dk>, 2006
4 # This file sets the following ELinks specific AsciiDoc macros:
6 # General purpose:
7 # - man:page[section]: which is used for linking between ELinks manpages.
9 # API Doc:
10 # - id:[]
11 # - enum:[]
12 # - func:[]
13 # - struct:[]
14 # - macro:[]
15 # - typedef:[]
16 # - ref:[]
18 [replacements]
19 (^|[^-])--($|[^-])=\1--\2
21 # Some macros can have optional {0} value, that is what
22 # the {0%...} and {0#...} handles.
24 #############################################################################
25 # DocBook
27 ifdef::backend-docbook[]
29 # To be replaced later
30 [attributes]
31 squote='
33 # No interlinking between elinks manpages
34 [man-inlinemacro]
35 {0%{target}}
36 {0#<citerefentry>}
37 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
38 {0#</citerefentry>}
40 # No interlinking between elinks manpages
41 [otherman-inlinemacro]
42 {0%{target}}
43 {0#<citerefentry>}
44 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
45 {0#</citerefentry>}
47 # For manpages use less verbose linking
48 ifdef::doctype-manpage[]
49 [link-inlinemacro]
50 {0%&lt;{target}&gt;}
51 {0#{0} &lt;{target}&gt;}
53 [http-inlinemacro]
54 {0%&lt;http:{target}&gt;}
55 {0#{0} &lt;http:{target}&gt;}
57 [mailto-inlinemacro]
58 &lt;{target}&gt;
60 [header]
61 template::[header-declarations]
62 <refentry>
63 <refmeta>
64 <refentrytitle>{mantitle}</refentrytitle>
65 <manvolnum>{manvolnum}</manvolnum>
66 <refmiscinfo class="source">ELinks</refmiscinfo>
67 <refmiscinfo class="version">{elinks_version}</refmiscinfo>
68 <refmiscinfo class="manual">{description}</refmiscinfo>
69 </refmeta>
70 <refnamediv>
71   <refname>{manname}</refname>
72   <refpurpose>{manpurpose}</refpurpose>
73 </refnamediv>
75 endif::doctype-manpage[]
76 endif::backend-docbook[]
78 #############################################################################
79 # XHTML11
81 ifdef::backend-xhtml11[]
83 [attributes]
84 squote='
86 # Use the man:[] macro to link between elinks manpages
87 [man-inlinemacro]
88 <a href="{target}.{0}.html">{target}({0})</a>
90 [otherman-inlinemacro]
91 <b>{target}({0})</b>
93 # API Doc macros
95 [id-inlinemacro]
96 <a id="{0}" href="#{0}">{0}</a>
98 [enum-inlinemacro]
99 <a id="{target}">enum {target}: {0}</a>
101 [func-inlinemacro]
102 <a id="{target}">{target}(): {0}</a>
104 [struct-inlinemacro]
105 <a id="{target}">struct {target}: {0}</a>
107 [macro-inlinemacro]
108 <a id="{target}">struct {target}: {0}</a>
110 [typedef-inlinemacro]
111 <a id="{target}">typedef {target}: {0}</a>
113 [ref-inlinemacro]
114 <a href="{target}#{0}">{0}</a>
116 endif::backend-xhtml11[]