OSDN Git Service

perf Documentation: Support for asciidoctor
authorTakashi Iwai <tiwai@suse.de>
Tue, 24 Apr 2018 15:04:56 +0000 (17:04 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Apr 2018 16:47:10 +0000 (13:47 -0300)
commitffef80ecf89f0a883e976534a62db04059d3a4f6
tree339e0325fb1be9caf2a5b8551d6cfaae6e552af4
parent83cf774b028fa67acfdd0176d54aa9387c2ad10d
perf Documentation: Support for asciidoctor

The asciidoc package seems behind the recent big wave of python3
conversion, and we were advised to switch to asciidoctor instead.  It's
almost compatible but some extensions used for perf documentation don't
work with it.  Here is the patch to cover them, and add the proper
support for asciidoctor.

Pass USE_ASCIIDOCTOR=yes to make for using asciidoctor instead of
asciidoc.  The man source and manual attributes are passed via command
options.  The support for these attributes have been fixed in the
latest asciidoctor code.

Since asciidoctor can covert to a man page and an HTML directly, we
can omit the dependency on xmlto when USE_ASCIIDOCTOR is set.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180424150456.17353-1-tiwai@suse.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/Makefile
tools/perf/Documentation/asciidoctor-extensions.rb [new file with mode: 0644]