diff --git a/build-docs.sh b/build-docs.sh
index 11e71f819edb71ca3ec033ecc9bda9f65d80cc14..016b34edae07b74c348218478f5a149c22a50765 100755
--- a/build-docs.sh
+++ b/build-docs.sh
@@ -1,4 +1,4 @@
-pip install sphinx_rtd_theme myst-parser sphinxcontrib-jquery
+pip install sphinx_rtd_theme sphinxcontrib-jquery
 
 cd docs || exit 1
 sphinx-build source build
diff --git a/docs/.gitlab-ci.yml b/docs/.gitlab-ci.yml
index c9d2fff925f56888c96d6fbf324116bce305e285..68d7fd2a3ea36f9a3a4b331e014b6cecef156d36 100644
--- a/docs/.gitlab-ci.yml
+++ b/docs/.gitlab-ci.yml
@@ -7,7 +7,7 @@ build-documentation:
   image: sphinxdoc/sphinx:latest
 
   before_script:
-    - pip install sphinx_rtd_theme sphinx-autodoc2 myst-parser
+    - pip install sphinx_rtd_theme sphinxcontrib-jquery
     - cd $CI_PROJECT_DIR/docs/source
   script:
     - make html