5 # Inspired by linkgit macro:
6 # <https://github.com/git/git/blob/master/Documentation/asciidoc.conf>
8 # Usage: man:command(manpage-section)
9 (?su)[\\]?(?P<name>man):(?P<target>\S*?)\((?P<attrlist>.*?)\)=
11 # no link option macro
13 # Usage: nloption:--option-name
14 (?su)[\\]?(?P<name>nloption):(?P<opt>--?[a-zA-Z0-9-]*)=
18 # Usage: option:--option-name
19 (?su)[\\]?(?P<name>option):(?P<opt>--?[a-zA-Z0-9-]*)=
26 # man macro expansions
27 ifdef::doctype-manpage[]
28 ifdef::backend-docbook[]
32 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
34 endif::backend-docbook[]
35 endif::doctype-manpage[]
37 # option macro expansions
38 ifdef::doctype-manpage[]
39 ifdef::backend-docbook[]
41 <literal>{opt}</literal>
42 endif::backend-docbook[]
43 endif::doctype-manpage[]
45 # no link option macro expansions
46 ifdef::doctype-manpage[]
47 ifdef::backend-docbook[]
48 [nloption-inlinemacro]
49 <literal>{opt}</literal>
50 endif::backend-docbook[]
51 endif::doctype-manpage[]
53 # not macro expansions
54 ifdef::doctype-manpage[]
55 ifdef::backend-docbook[]
58 endif::backend-docbook[]
59 endif::doctype-manpage[]
61 # configure XML man page header
62 ifdef::doctype-manpage[]
63 ifdef::backend-docbook[]
65 template::[header-declarations]
68 <refentrytitle>{mantitle}</refentrytitle>
69 <manvolnum>{manvolnum}</manvolnum>
70 <refmiscinfo class="source">LTTng</refmiscinfo>
71 <refmiscinfo class="version">{lttng_version}</refmiscinfo>
72 <refmiscinfo class="manual">LTTng Manual</refmiscinfo>
75 <refname>{manname}</refname>
76 <refpurpose>{manpurpose}</refpurpose>
78 endif::backend-docbook[]
79 endif::doctype-manpage[]