diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f2e192e74eed6e685e0dc82164c502849090e7b6..a8c13862432a7aa561f6588f9af673e443d064d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,7 +21,7 @@ doc:
     script:
         - export LC_ALL=$(locale -a | grep en_US)
         - export LANG=$(locale -a | grep en_US)
-        - python3 setup.py install
+        - pip3 install -e .[doc]
         - sphinx-apidoc -o docs/source multiview_generator
         - cd docs/source
         - sphinx-build -b html . ../build