diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dff1bd34aea07dd7eb2f820cd79c5279f8186ce0..e08bfc3f1ff927c129b95707cf6970010290f879 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,7 +75,7 @@ deploy_zenodo:
 
 pages:
     stage: deploy
-    image: python:3.7-alpine
+    image: python:3.8.2-alpine
     script:
       - pip install --upgrade pip
       - pip install -U -r docs/doc_requirements.txt
diff --git a/docs/doc_requirements.txt b/docs/doc_requirements.txt
index b3b54f2acf925c883ae7f0102f7bf62662959404..9193726b9de8f0e83dfe55cd403740e748a5f55a 100644
--- a/docs/doc_requirements.txt
+++ b/docs/doc_requirements.txt
@@ -1,4 +1,4 @@
-sphinx
+sphinx>=3
 nbsphinx
 sphinx_rtd_theme
 myst-parser
\ No newline at end of file