From: Peter Krempa Date: Wed, 23 Sep 2020 13:13:57 +0000 (+0200) Subject: docs: manpages: Strip table of contents from manpages X-Git-Tag: v6.8.0-rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6ac9b22d39d7114281518160c2f47a969293544;p=thirdparty%2Flibvirt.git docs: manpages: Strip table of contents from manpages After meson conversion the man pages started to contain the table of contents. In autoconf we prevented this by a 'grep -v ::contents' in the command building the manpages. A more cultured solution is to strip out the 'contents' docutils element directly. Reported-by: Daniel P. Berrangé Signed-off-by: Peter Krempa Reviewed-by: Pavel Hrdina Reviewed-by: Daniel P. Berrangé Reviewed-by: Ján Tomko --- diff --git a/docs/manpages/meson.build b/docs/manpages/meson.build index 3888bb8efe..7ed1d304a4 100644 --- a/docs/manpages/meson.build +++ b/docs/manpages/meson.build @@ -89,7 +89,8 @@ foreach data : docs_man_files man_file, input: rst_file, output: man_file, - command: [ rst2man_prog, '--strict', '@INPUT@', '@OUTPUT@' ], + # 'contents' element is the table of contents which is undesired in manpage + command: [ rst2man_prog, '--strip-elements-with-class', 'contents', '--strict', '@INPUT@', '@OUTPUT@' ], install: true, install_dir: mandir / 'man@0@'.format(data['section']), )