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-]*)=
46 # man macro expansions
47 ifdef::doctype-manpage[]
48 ifdef::backend-docbook[]
52 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
54 endif::backend-docbook[]
55 endif::doctype-manpage[]
57 # linkgenoptions macro expansions
58 ifdef::doctype-manpage[]
59 ifdef::backend-docbook[]
60 [linkgenoptions-inlinemacro]
62 endif::backend-docbook[]
63 endif::doctype-manpage[]
65 # option macro expansions
66 ifdef::doctype-manpage[]
67 ifdef::backend-docbook[]
69 <literal>{opt}</literal>
70 endif::backend-docbook[]
71 endif::doctype-manpage[]
73 # no link option macro expansions
74 ifdef::doctype-manpage[]
75 ifdef::backend-docbook[]
76 [nloption-inlinemacro]
77 <literal>{opt}</literal>
78 endif::backend-docbook[]
79 endif::doctype-manpage[]
81 # lttng(1) general option macro expansions
82 ifdef::doctype-manpage[]
83 ifdef::backend-docbook[]
84 [genoption-inlinemacro]
85 <literal>{opt}</literal>
86 endif::backend-docbook[]
87 endif::doctype-manpage[]
89 # not macro expansions
90 ifdef::doctype-manpage[]
91 ifdef::backend-docbook[]
94 endif::backend-docbook[]
95 endif::doctype-manpage[]
97 # escwc macro expansions
98 ifdef::doctype-manpage[]
99 ifdef::backend-docbook[]
101 <literal>\e*</literal>
102 endif::backend-docbook[]
103 endif::doctype-manpage[]
105 # esccomma macro expansions
106 ifdef::doctype-manpage[]
107 ifdef::backend-docbook[]
108 [esccomma-inlinemacro]
109 <literal>\e,</literal>
110 endif::backend-docbook[]
111 endif::doctype-manpage[]
113 # configure XML man page header
114 ifdef::doctype-manpage[]
115 ifdef::backend-docbook[]
117 template::[header-declarations]
120 <refentrytitle>{mantitle}</refentrytitle>
121 <manvolnum>{manvolnum}</manvolnum>
122 <refmiscinfo class="source">LTTng</refmiscinfo>
123 <refmiscinfo class="version">{lttng_version}</refmiscinfo>
124 <refmiscinfo class="manual">LTTng Manual</refmiscinfo>
127 <refname>{manname}</refname>
128 <refpurpose>{manpurpose}</refpurpose>
130 endif::backend-docbook[]
131 endif::doctype-manpage[]