From: Philippe Proulx Date: Tue, 1 Sep 2015 14:58:25 +0000 (-0400) Subject: doc/man: add asciidoc.conf X-Git-Tag: v2.8.0-rc1~59 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f95ec87d0f3f4a6c8119e95394bbb5b3aed3a651;p=lttng-tools.git doc/man: add asciidoc.conf asciidoc.conf is the configuration file for AsciiDoc. It contains macros to generate the output differently based on the backend. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/doc/man/asciidoc.conf b/doc/man/asciidoc.conf new file mode 100644 index 000000000..3f8cac41e --- /dev/null +++ b/doc/man/asciidoc.conf @@ -0,0 +1,60 @@ +[macros] + +# linklttng macro +# +# Inspired by linkgit macro: +# +# +# Usage: linklttng:command(manpage-section) +(?su)[\\]?(?Plinklttng):(?P\S*?)\((?P.*?)\)= + +# option macro +# +# Usage: option:--option-name +(?su)[\\]?(?Poption):(?P--?[a-zA-Z0-9-]*)= + +# not macro +# +# Usage: :not: +:not:=not + +# linklttng macro expansions +ifdef::backend-docbook[] +[linklttng-inlinemacro] +{0%{target}} +{0#} +{0#{target}{0}} +{0#} +endif::backend-docbook[] + +# option macro expansions +ifdef::backend-docbook[] +[option-inlinemacro] +{opt} +endif::backend-docbook[] + +# not macro expansions +ifdef::backend-docbook[] +[not-inlinemacro] +NOT +endif::backend-docbook[] + +# configure XML man page header +ifdef::doctype-manpage[] +ifdef::backend-docbook[] +[header] +template::[header-declarations] + + +{mantitle} +{manvolnum} +LTTng +{lttng_version} +LTTng Manual + + + {manname} + {manpurpose} + +endif::backend-docbook[] +endif::doctype-manpage[]