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:
diff --git a/.readthedocs.yml b/.readthedocs.yml
deleted file mode 100644
index 79bdc7e7f89b8d6e29352f960f2385492d32fa97..0000000000000000000000000000000000000000
--- a/.readthedocs.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-# .readthedocs.yaml
-# Read the Docs configuration file
-# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
-
-# Required
-version: 2
-
-# Build documentation in the docs/ directory with Sphinx
-sphinx:
-   configuration: doc/conf.py
-
-# Optionally build your docs in additional formats such as PDF
-formats:
-   - pdf
-
-# Optionally set the version of Python and requirements required to build your docs
-python:
-   version: 3.7
-   install:
-   - requirements: doc/requirements.txt
\ No newline at end of file