2006-01-29 06:52:19 -05:00
|
|
|
# AsciiDoc configuration file
|
|
|
|
# Copyright (c) Jonas Fonseca <fonseca@diku.dk>, 2006
|
|
|
|
|
|
|
|
# This file sets the following ELinks specific AsciiDoc macros:
|
|
|
|
#
|
|
|
|
# General purpose:
|
|
|
|
# - man:page[section]: which is used for linking between ELinks manpages.
|
|
|
|
#
|
|
|
|
# API Doc:
|
|
|
|
# - id:[]
|
|
|
|
# - enum:[]
|
|
|
|
# - func:[]
|
|
|
|
# - struct:[]
|
|
|
|
# - macro:[]
|
|
|
|
# - typedef:[]
|
|
|
|
# - ref:[]
|
|
|
|
|
|
|
|
[replacements]
|
|
|
|
(^|[^-])--($|[^-])=\1--\2
|
|
|
|
|
|
|
|
# Some macros can have optional {0} value, that is what
|
|
|
|
# the {0%...} and {0#...} handles.
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
# DocBook
|
|
|
|
|
|
|
|
ifdef::backend-docbook[]
|
|
|
|
|
|
|
|
# To be replaced later
|
|
|
|
[attributes]
|
|
|
|
squote=@squote@
|
|
|
|
|
|
|
|
# No interlinking between elinks manpages
|
|
|
|
[man-inlinemacro]
|
|
|
|
{0%{target}}
|
|
|
|
{0#<citerefentry>}
|
|
|
|
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
|
|
|
|
{0#</citerefentry>}
|
|
|
|
|
2008-02-23 12:21:19 -05:00
|
|
|
# No interlinking between elinks manpages
|
|
|
|
[otherman-inlinemacro]
|
|
|
|
{0%{target}}
|
|
|
|
{0#<citerefentry>}
|
|
|
|
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
|
|
|
|
{0#</citerefentry>}
|
|
|
|
|
2006-01-29 06:52:19 -05:00
|
|
|
# For manpages use less verbose linking
|
|
|
|
ifdef::doctype-manpage[]
|
|
|
|
[link-inlinemacro]
|
|
|
|
{0%<{target}>}
|
|
|
|
{0#{0} <{target}>}
|
|
|
|
|
|
|
|
[http-inlinemacro]
|
|
|
|
{0%<http:{target}>}
|
|
|
|
{0#{0} <http:{target}>}
|
|
|
|
|
|
|
|
[mailto-inlinemacro]
|
|
|
|
<{target}>
|
|
|
|
|
|
|
|
endif::doctype-manpage[]
|
|
|
|
endif::backend-docbook[]
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
# XHTML11
|
|
|
|
|
|
|
|
ifdef::backend-xhtml11[]
|
|
|
|
|
|
|
|
[attributes]
|
|
|
|
squote='
|
|
|
|
|
|
|
|
# Use the man:[] macro to link between elinks manpages
|
|
|
|
[man-inlinemacro]
|
2008-02-23 12:21:19 -05:00
|
|
|
<a href="{target}.{0}.html">{target}({0})</a>
|
|
|
|
|
|
|
|
[otherman-inlinemacro]
|
|
|
|
<b>{target}({0})</b>
|
2006-01-29 06:52:19 -05:00
|
|
|
|
|
|
|
# API Doc macros
|
|
|
|
|
|
|
|
[id-inlinemacro]
|
|
|
|
<a id="{0}" href="#{0}">{0}</a>
|
|
|
|
|
|
|
|
[enum-inlinemacro]
|
|
|
|
<a id="{target}">enum {target}: {0}</a>
|
|
|
|
|
|
|
|
[func-inlinemacro]
|
|
|
|
<a id="{target}">{target}(): {0}</a>
|
|
|
|
|
|
|
|
[struct-inlinemacro]
|
|
|
|
<a id="{target}">struct {target}: {0}</a>
|
|
|
|
|
|
|
|
[macro-inlinemacro]
|
|
|
|
<a id="{target}">struct {target}: {0}</a>
|
|
|
|
|
|
|
|
[typedef-inlinemacro]
|
|
|
|
<a id="{target}">typedef {target}: {0}</a>
|
|
|
|
|
|
|
|
[ref-inlinemacro]
|
|
|
|
<a href="{target}#{0}">{0}</a>
|
|
|
|
|
|
|
|
endif::backend-xhtml11[]
|