diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b8e89e8f39c952aa07f380aa39b3f2c653a78a0..b8ae6e6caf5b75bbe04134c680437b92aa84a716 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,7 +40,7 @@ pages:
     script:
         - export LC_ALL=$(locale -a | grep en_US)
         - export LANG=$(locale -a | grep en_US)
-        - python3 setup.py install
+        - pip3 install -e .[doc]
         - python3 setup.py build_sphinx
         - cp -r build/sphinx/html public
     artifacts: