2 # Inspired by/borrowed from the pacman source tree at doc/asciidoc.conf
4 # Usage: linkman:command[manpage-section]
6 # Note, {0} is the manpage section, while {target} is the command.
8 # Show man link as: <command>(<section>); if section is defined, else just show
12 (?su)[\\]?(?P<name>linkman):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
26 ifdef::backend-docbook[]
30 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
32 endif::backend-docbook[]
34 ifdef::backend-docbook[]
35 ifndef::docbook-xsl-172[]
36 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
37 # v1.72 breaks with this because it replaces dots not in roff requests.
39 <example><title>{title}</title>
44 endif::docbook-xsl-172[]
45 endif::backend-docbook[]
47 ifdef::doctype-manpage[]
48 ifdef::backend-docbook[]
50 template::[header-declarations]
53 <refentrytitle>{mantitle}</refentrytitle>
54 <manvolnum>{manvolnum}</manvolnum>
55 <refmiscinfo class="source">libquvi</refmiscinfo>
56 <refmiscinfo class="version">{pkg_version}</refmiscinfo>
57 <refmiscinfo class="manual">libquvi Manual</refmiscinfo>
60 <refname>{manname}</refname>
61 <refpurpose>{manpurpose}</refpurpose>
63 endif::backend-docbook[]
64 endif::doctype-manpage[]