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.
18 # Some macros can have optional {0} value, that is what
19 # the {0%...} and {0#...} handles.
21 #############################################################################
24 ifdef::backend-docbook[]
26 # No interlinking between elinks manpages
30 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
33 # For manpages use less verbose linking
34 ifdef::doctype-manpage[]
37 {0#{0} <{target}>}
40 {0%<http:{target}>}
41 {0#{0} <http:{target}>}
46 endif::doctype-manpage[]
47 endif::backend-docbook[]
49 #############################################################################
52 ifdef::backend-xhtml11[]
54 # Use the man:[] macro to link between elinks manpages
56 <a href="{target}.{0}.html">{target}({0})</a>
61 <a id="{0}" href="#{0}">{0}</a>
64 <a id="{target}">enum {target}: {0}</a>
67 <a id="{target}">{target}(): {0}</a>
70 <a id="{target}">struct {target}: {0}</a>
73 <a id="{target}">struct {target}: {0}</a>
76 <a id="{target}">typedef {target}: {0}</a>
79 <a href="{target}#{0}">{0}</a>
81 endif::backend-xhtml11[]