mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-29 08:17:18 -04:00
34a18bd597
This adopts customized docbook manpage header from git's
Documentation/asciidoc.conf and does away with a couple of
ugly hacks.
(cherry picked from commit 0ecc8b9d60
,
omitting generated files)
85 lines
1.9 KiB
Plaintext
85 lines
1.9 KiB
Plaintext
# 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.
|
|
|
|
[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='
|
|
|
|
# No interlinking between elinks manpages
|
|
[man-inlinemacro]
|
|
{0%{target}}
|
|
{0#<citerefentry>}
|
|
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
|
|
{0#</citerefentry>}
|
|
|
|
# No interlinking between elinks manpages
|
|
[otherman-inlinemacro]
|
|
{0%{target}}
|
|
{0#<citerefentry>}
|
|
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
|
|
{0#</citerefentry>}
|
|
|
|
# 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}>
|
|
|
|
[header]
|
|
template::[header-declarations]
|
|
<refentry>
|
|
<refmeta>
|
|
<refentrytitle>{mantitle}</refentrytitle>
|
|
<manvolnum>{manvolnum}</manvolnum>
|
|
<refmiscinfo class="source">ELinks</refmiscinfo>
|
|
<refmiscinfo class="version">{elinks_version}</refmiscinfo>
|
|
<refmiscinfo class="manual">{description}</refmiscinfo>
|
|
</refmeta>
|
|
<refnamediv>
|
|
<refname>{manname}</refname>
|
|
<refpurpose>{manpurpose}</refpurpose>
|
|
</refnamediv>
|
|
|
|
endif::doctype-manpage[]
|
|
endif::backend-docbook[]
|
|
|
|
#############################################################################
|
|
# XHTML11
|
|
|
|
ifdef::backend-xhtml11[]
|
|
|
|
[attributes]
|
|
squote='
|
|
|
|
# Use the man:[] macro to link between elinks manpages
|
|
[man-inlinemacro]
|
|
<a href="{target}.{0}.html">{target}({0})</a>
|
|
|
|
[otherman-inlinemacro]
|
|
<b>{target}({0})</b>
|
|
|
|
endif::backend-xhtml11[]
|