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 # For manpages use less verbose linking
41 ifdef::doctype-manpage[]
44 {0#{0} <{target}>}
47 {0%<http:{target}>}
48 {0#{0} <http:{target}>}
53 endif::doctype-manpage[]
54 endif::backend-docbook[]
56 #############################################################################
59 ifdef::backend-xhtml11[]
64 # Use the man:[] macro to link between elinks manpages
66 {eval:re.match("elinks", "{target}") != None}<a href="{target}.{0}.html">{target}({0})</a>
67 {eval:re.match("elinks", "{target}") == None}<b>{target}({0})</b>
72 <a id="{0}" href="#{0}">{0}</a>
75 <a id="{target}">enum {target}: {0}</a>
78 <a id="{target}">{target}(): {0}</a>
81 <a id="{target}">struct {target}: {0}</a>
84 <a id="{target}">struct {target}: {0}</a>
87 <a id="{target}">typedef {target}: {0}</a>
90 <a href="{target}#{0}">{0}</a>
92 endif::backend-xhtml11[]