From b133effad42e398602640d374890c9cfe3762b17 Mon Sep 17 00:00:00 2001
From: Thomas Grainger <tagrain@gmail.com>
Date: Wed, 22 Mar 2023 13:43:22 +0000
Subject: [PATCH] configure sphinx warnings as errors

---
 .readthedocs.yaml | 1 +
 docs/Makefile     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index bb4bcb544e5..c2042456f18 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -7,6 +7,7 @@ build:
 
 sphinx:
   configuration: docs/source/conf.py
+  fail_on_warning: true
 
 python:
   install:
diff --git a/docs/Makefile b/docs/Makefile
index 53ad878881e..bc483404063 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -2,7 +2,7 @@
 #
 
 # You can set these variables from the command line.
-SPHINXOPTS    = -j4
+SPHINXOPTS    = -j4 -W
 SPHINXBUILD   = sphinx-build
 PAPER         =
 BUILDDIR      = build