Convert man pages to AsciiDoc
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 5 Apr 2016 14:50:34 +0000 (10:50 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Apr 2016 00:31:38 +0000 (20:31 -0400)
commit4ddbd0b790be981d023f344a83e67a8746fa3688
tree0ab6b91008c0f8ef66c0bfde878a263198301ce8
parent3e6a069401b74471672a89bac283b5e8f61ccf6f
Convert man pages to AsciiDoc

This patch adds a new "enable" option to the configure
script, --enable-man-pages (default) and --disable-man-pages.

When man pages are enabled, they are built and installed.

The man pages are built from their AsciiDoc sources in this way:

    AsciiDoc source -> asciidoc -> DocBook XML -> xmlto -> troff
                          ^                         ^
                       included                DocBook XSLs
                       AsciiDoc                     +
                        files                   custom XSLs

The built troff man pages should be distributed in a release
tarball. When building from a release tarball, the tools (asciidoc
and xmlto) are not strictly needed, unless a man page source is
modified/removed, in which case:

    if the tools existed at configure time:
        rebuild/update man page
    otherwise:
        show an error message which indicates why the target
        cannot be built because the tools are missing

When building from the Git repository, and when --enable-man-pages
is used, the tools are required at configure time.

The incentive for this change is to make the man pages easier to
write and maintain, AsciiDoc being far more easy to read and write
than pure troff, as well as enable rich HTML man page generation
from the intermediate DocBook XML file to publish man pages with
working internal/external links and style improvements on the
LTTng website. This also makes LTTng-UST man pages conform to the
LTTng-tools ones which use the same mechanism.

The following "redirection" man pages are also added:

  * do_tracepoint(3)
  * tracepoint(3)
  * tracepoint_enabled(3)

They all redirect to lttng-ust(3). They are always distributed,
but only installed when lttng-ust(3) is also installed (which is
when --enable-man-page exists at configure time).

See the new doc/man/README.md file for more details about the
new files and macros to use in the AsciiDoc man page source files.

This patch also contains various content fixes and updates of the
LTTng-UST man pages. Some new content is based on the online LTTng
documentation.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
31 files changed:
.gitignore
README.md
configure.ac
doc/Makefile.am
doc/man/Makefile.am [new file with mode: 0644]
doc/man/README.md [new file with mode: 0644]
doc/man/asciidoc.conf [new file with mode: 0644]
doc/man/common-authors.txt [new file with mode: 0644]
doc/man/common-copyrights.txt [new file with mode: 0644]
doc/man/common-footer-author.txt [new file with mode: 0644]
doc/man/common-footer.txt [new file with mode: 0644]
doc/man/do_tracepoint.3 [new file with mode: 0644]
doc/man/log-levels.txt [new file with mode: 0644]
doc/man/lttng-gen-tp.1 [deleted file]
doc/man/lttng-gen-tp.1.txt [new file with mode: 0644]
doc/man/lttng-ust-cyg-profile.3 [deleted file]
doc/man/lttng-ust-cyg-profile.3.txt [new file with mode: 0644]
doc/man/lttng-ust-dl.3 [deleted file]
doc/man/lttng-ust-dl.3.txt [new file with mode: 0644]
doc/man/lttng-ust.3 [deleted file]
doc/man/lttng-ust.3.txt [new file with mode: 0644]
doc/man/tracef-tracelog-limitations.txt [new file with mode: 0644]
doc/man/tracef.3.txt [new file with mode: 0644]
doc/man/tracelog.3.txt [new file with mode: 0644]
doc/man/tracepoint.3 [new file with mode: 0644]
doc/man/tracepoint_enabled.3 [new file with mode: 0644]
doc/man/xsl/manpage-bold-literal.xsl [new file with mode: 0644]
doc/man/xsl/manpage-callouts.xsl [new file with mode: 0644]
doc/man/xsl/manpage-headings.xsl [new file with mode: 0644]
doc/man/xsl/manpage-links.xsl [new file with mode: 0644]
doc/man/xsl/manpage.xsl [new file with mode: 0644]
This page took 0.027026 seconds and 4 git commands to generate.