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.
10 (^|[^-])--($|[^-])=\1--\2
12 # Some macros can have optional {0} value, that is what
13 # the {0%...} and {0#...} handles.
15 #############################################################################
18 ifdef::backend-docbook[]
20 # To be replaced later
24 # No interlinking between elinks manpages
28 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
31 # No interlinking between elinks manpages
32 [otherman-inlinemacro]
35 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
38 # For manpages use less verbose linking
39 ifdef::doctype-manpage[]
42 {0#{0} <{target}>}
45 {0%<http:{target}>}
46 {0#{0} <http:{target}>}
52 template::[header-declarations]
55 <refentrytitle>{mantitle}</refentrytitle>
56 <manvolnum>{manvolnum}</manvolnum>
57 <refmiscinfo class="source">ELinks</refmiscinfo>
58 <refmiscinfo class="version">{elinks_version}</refmiscinfo>
59 <refmiscinfo class="manual">{description}</refmiscinfo>
62 <refname>{manname}</refname>
63 <refpurpose>{manpurpose}</refpurpose>
66 endif::doctype-manpage[]
67 endif::backend-docbook[]
69 #############################################################################
72 ifdef::backend-xhtml11[]
77 # Use the man:[] macro to link between elinks manpages
79 <a href="{target}.{0}.html">{target}({0})</a>
81 [otherman-inlinemacro]
84 endif::backend-xhtml11[]