1 # AsciiDoc configuration file
2 # Copyright (c) Jonas Fonseca <fonseca@diku.dk>, 2006
4 # This file sets the following ELinks specific AsciiDoc macros:
7 # - man:page[section]: which is used for linking between ELinks manpages.
19 (^|[^-])--($|[^-])=\1--\2
21 # Some macros can have optional {0} value, that is what
22 # the {0%...} and {0#...} handles.
24 #############################################################################
27 ifdef::backend-docbook[]
29 # To be replaced later
33 # No interlinking between elinks manpages
37 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
40 # No interlinking between elinks manpages
41 [otherman-inlinemacro]
44 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
47 # For manpages use less verbose linking
48 ifdef::doctype-manpage[]
51 {0#{0} <{target}>}
54 {0%<http:{target}>}
55 {0#{0} <http:{target}>}
61 template::[header-declarations]
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>
71 <refname>{manname}</refname>
72 <refpurpose>{manpurpose}</refpurpose>
75 endif::doctype-manpage[]
76 endif::backend-docbook[]
78 #############################################################################
81 ifdef::backend-xhtml11[]
86 # Use the man:[] macro to link between elinks manpages
88 <a href="{target}.{0}.html">{target}({0})</a>
90 [otherman-inlinemacro]
96 <a id="{0}" href="#{0}">{0}</a>
99 <a id="{target}">enum {target}: {0}</a>
102 <a id="{target}">{target}(): {0}</a>
105 <a id="{target}">struct {target}: {0}</a>
108 <a id="{target}">struct {target}: {0}</a>
110 [typedef-inlinemacro]
111 <a id="{target}">typedef {target}: {0}</a>
114 <a href="{target}#{0}">{0}</a>
116 endif::backend-xhtml11[]