diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3cba2e9ef26735fdf28a010f6507e9925f981a31..1522007c8c45ceed0279309a3a4787ce60c7a179 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,6 +86,7 @@ unit-test-job:   # This job runs in the test stage.
 pages-job:
   script:
     - pip install sphinx sphinx-rtd-theme m2r2 furo
+    - pip install -e .
     - cd docs
     - make html
     - mv build/html/ ../public/