diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c995a42f1f97d8a426058d63bed02141fe55e555..ffd5e68a5a315ab72d3fac0a8dd76a895d1b1e17 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,7 @@ pages:
     - apt-get install -y pandoc
     - pip3 install sphinx-autoapi
     - pip3 install nbsphinx
-    - sphinx-build -M html doc public
+    - sphinx-build -b html doc public
   pages: True
   artifacts:
     paths: