diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a98b623b37d48753db2969cf7aeda66c41500787..07a7b7c4514fa0cc87aedca3bab23f1a52e71eee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -61,9 +61,7 @@ build-documentation:
   image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
   script:
     - python -m pip install -e .
-    - export PYTHONPATH=`pwd`
-    - mkdir html_doc
-    - sphinx-build -W -b html doc  html_doc
+    - python setup.py docs
   tags:
     - docker
     - cuda