]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: use --strict arg when processing rst docs
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 29 Jan 2020 10:17:45 +0000 (10:17 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 29 Jan 2020 12:16:13 +0000 (12:16 +0000)
The --strict arg forces the rst tools to abort with an error instead
of printing warnings to stderr, or the output document.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
docs/Makefile.am

index 94ae5079ddd4efadd825de8051b6fc701b8702c0..61862c4ab783217f5b9bf6367d38660e5020c441 100644 (file)
@@ -267,21 +267,21 @@ man8_MANS = $(manpages8_rst:%.rst=%.8)
           grep -v '^\.\. contents::' < $< | \
           sed -e 's|SYSCONFDIR|$(sysconfdir)|g' \
               -e 's|RUNSTATEDIR|$(runstatedir)|g' | \
-          $(RST2MAN) > $@ || { rm $@ && exit 1; }
+          $(RST2MAN) --strict > $@ || { rm $@ && exit 1; }
 
 %.7: %.rst
        $(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
           grep -v '^\.\. contents::' < $< | \
           sed -e 's|SYSCONFDIR|$(sysconfdir)|g' \
               -e 's|RUNSTATEDIR|$(runstatedir)|g' | \
-          $(RST2MAN) > $@ || { rm $@ && exit 1; }
+          $(RST2MAN) --strict > $@ || { rm $@ && exit 1; }
 
 %.8: %.rst
        $(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
           grep -v '^\.\. contents::' < $< | \
           sed -e 's|SYSCONFDIR|$(sysconfdir)|g' \
               -e 's|RUNSTATEDIR|$(runstatedir)|g' | \
-          $(RST2MAN) > $@ || { rm $@ && exit 1; }
+          $(RST2MAN) --strict > $@ || { rm $@ && exit 1; }
 
 manpages/virkeycode-%.rst: $(top_srcdir)/src/keycodemapdb/data/keymaps.csv \
                $(top_srcdir)/src/keycodemapdb/tools/keymap-gen Makefile.am
@@ -420,11 +420,11 @@ manpages/%.html.in: manpages/%.rst
         grep -v '^:Manual ' < $< | \
          sed -e 's|SYSCONFDIR|$(sysconfdir)|g' \
             -e 's|RUNSTATEDIR|$(runstatedir)|g' | \
-         $(RST2HTML) > $@ || { rm $@ && exit 1; }
+         $(RST2HTML) --strict > $@ || { rm $@ && exit 1; }
 
 %.html.in: %.rst
        $(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
-         $(RST2HTML) $< > $@ || { rm $@ && exit 1; }
+         $(RST2HTML) --strict $< > $@ || { rm $@ && exit 1; }
 
 %.html.tmp: %.html.in site.xsl subsite.xsl page.xsl \
                $(acl_generated)