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 # linkgenoptions macro
13 # Usage: linkgenoptions:(text)
14 (?su)[\\]?(?P<name>linkgenoptions):\((?P<text>.*?)\)=
16 # no link option macro
18 # Usage: nloption:--option-name
19 (?su)[\\]?(?P<name>nloption):(?P<opt>--?[a-zA-Z0-9-]*)=
21 # lttng(1) general option macro
23 # Usage: genoption:--option-name
24 (?su)[\\]?(?P<name>genoption):(?P<opt>--?[a-zA-Z0-9-]*)=
28 # Usage: option:--option-name
29 (?su)[\\]?(?P<name>option):(?P<opt>--?[a-zA-Z0-9-]*)=
41 # man macro expansions
42 ifdef::doctype-manpage[]
43 ifdef::backend-docbook[]
47 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
49 endif::backend-docbook[]
50 endif::doctype-manpage[]
52 # linkgenoptions macro expansions
53 ifdef::doctype-manpage[]
54 ifdef::backend-docbook[]
55 [linkgenoptions-inlinemacro]
57 endif::backend-docbook[]
58 endif::doctype-manpage[]
60 # option macro expansions
61 ifdef::doctype-manpage[]
62 ifdef::backend-docbook[]
64 <literal>{opt}</literal>
65 endif::backend-docbook[]
66 endif::doctype-manpage[]
68 # no link option macro expansions
69 ifdef::doctype-manpage[]
70 ifdef::backend-docbook[]
71 [nloption-inlinemacro]
72 <literal>{opt}</literal>
73 endif::backend-docbook[]
74 endif::doctype-manpage[]
76 # lttng(1) general option macro expansions
77 ifdef::doctype-manpage[]
78 ifdef::backend-docbook[]
79 [genoption-inlinemacro]
80 <literal>{opt}</literal>
81 endif::backend-docbook[]
82 endif::doctype-manpage[]
84 # not macro expansions
85 ifdef::doctype-manpage[]
86 ifdef::backend-docbook[]
89 endif::backend-docbook[]
90 endif::doctype-manpage[]
92 # escwc macro expansions
93 ifdef::doctype-manpage[]
94 ifdef::backend-docbook[]
96 <literal>\e*</literal>
97 endif::backend-docbook[]
98 endif::doctype-manpage[]
100 # configure XML man page header
101 ifdef::doctype-manpage[]
102 ifdef::backend-docbook[]
104 template::[header-declarations]
107 <refentrytitle>{mantitle}</refentrytitle>
108 <manvolnum>{manvolnum}</manvolnum>
109 <refmiscinfo class="source">LTTng</refmiscinfo>
110 <refmiscinfo class="version">{lttng_version}</refmiscinfo>
111 <refmiscinfo class="manual">LTTng Manual</refmiscinfo>
114 <refname>{manname}</refname>
115 <refpurpose>{manpurpose}</refpurpose>
117 endif::backend-docbook[]
118 endif::doctype-manpage[]