diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 54fc645946042528656a57315471378a9c252d1f..51d2c577fb41d3b043dbf0169a85ce201ebe3582 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -104,11 +104,8 @@ pages:
     - source activate bvpy
     # Install `bvpy` package (from sources):
     - python -m pip install -e .[doc]
-    # Build the documentation:
-    - cd doc
-    - make clean && make html
-    # Publish the documentation:
-    - mv build/html ../public
+    # Build the documentation with Sphinx:
+    - sphinx-build -b html doc/source/ public/
   retry:
     max: 2
     when: runner_system_failure