diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c834b9719fd8843e87df3e4fc2ddd7d853519ba0..326f51cd724137fc0817595e5d67bc5cdc53f845 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -149,7 +149,8 @@ build-documentation:
     - export PYTHONPATH=`pwd`
     - pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
     - mkdir html_doc
-    - sphinx-build -W -b html doc  html_doc
+    - sphinx-build -b html doc html_doc
+    - sphinx-build -W -b html doc html_doc
   tags:
     - docker
     - cuda11
diff --git a/doc/conf.py b/doc/conf.py
index befdb443869eead8001a173274d827b54a45a641..d7aca86426592699a82896d0b560c73dec4675ad 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -54,6 +54,7 @@ intersphinx_mapping = {'python': ('https://docs.python.org/3.6', None),
                        }
 
 autodoc_member_order = 'bysource'
+bibtex_bibfiles = ['sphinx/lbmpy.bib']
 
 project = 'lbmpy'
 html_logo = "img/logo.png"