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 # For manpages use less verbose linking
32 ifdef::doctype-manpage[]
35 {0#{0} <{target}>}
38 {0%<http:{target}>}
39 {0#{0} <http:{target}>}
44 endif::doctype-manpage[]
45 endif::backend-docbook[]
47 #############################################################################
50 ifdef::backend-xhtml11[]
55 # Use the man:[] macro to link between elinks manpages
57 {eval:re.match("elinks", "{target}") != None}<a href="{target}.{0}.html">{target}({0})</a>
58 {eval:re.match("elinks", "{target}") == None}<b>{target}({0})</b>
60 endif::backend-xhtml11[]