From ff5104de74122477459b48df8b046d06d2db506b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 10 May 2023 16:00:01 -0400 Subject: Build Sphinx documentation in strict mode --- doc/meson.build | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/meson.build b/doc/meson.build index 2cceed5..78ed876 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -1,4 +1,4 @@ -# Copyright 2021-2022 David Robillard +# Copyright 2021-2023 David Robillard # SPDX-License-Identifier: 0BSD OR ISC docdir = get_option('datadir') / 'doc' @@ -92,8 +92,10 @@ if build_docs custom_target( 'singlehtml', build_by_default: true, - command: [sphinx_build, '-M', 'singlehtml', '@OUTDIR@', '@OUTDIR@', - '-t', 'singlehtml'] + sphinx_options, + command: [ + sphinx_build, '-M', 'singlehtml', '@OUTDIR@', '@OUTDIR@', + '-W', '-E', '-q', '-t', 'singlehtml', + ] + sphinx_options, input: doc_inputs, install: true, install_dir: docdir / versioned_name, @@ -103,8 +105,10 @@ if build_docs custom_target( 'html', build_by_default: true, - command: [sphinx_build, '-M', 'html', '@OUTDIR@', '@OUTDIR@', - '-t', 'html'] + sphinx_options, + command: [ + sphinx_build, '-M', 'html', '@OUTDIR@', '@OUTDIR@', + '-W', '-E', '-q', '-t', 'html', + ] + sphinx_options, input: doc_inputs, install: true, install_dir: docdir / versioned_name, -- cgit v1.2.1