diff --git a/build-docs.sh b/build-docs.sh
index 00eede5c272285774ee9f4dc0af192afb2835520..17ba3cb894172fdd10962bbce0abcee527189136 100755
--- a/build-docs.sh
+++ b/build-docs.sh
@@ -5,4 +5,4 @@ python docs/dump-openapi-spec.py
 #   ... and install dot on the system
 # python docs/render_db_diagrams.py
 
-sphinx-build -M html docs/source docs/build
+sphinx-build -b html docs/source docs/build
diff --git a/tox.ini b/tox.ini
index a4ce0c08d62f5592f737a70c7e5ca7fe903af587..84f9ddf2fcb3866ddaf990c78261348b0e764423 100644
--- a/tox.ini
+++ b/tox.ini
@@ -20,4 +20,4 @@ commands =
     #   pip install -r docs/requirements-er.txt
     #   ... and install dot on the system
     # python docs/render_db_diagrams.py
-    sphinx-build -M html docs/source docs/build
+    sphinx-build -b html docs/source docs/build