diff --git a/doc/source/conf.py b/doc/source/conf.py
index 4950081971310a8c455474d05418094ea347f468..c447329a8a6281c5759e809c40bdc97d3a987e1f 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -181,3 +181,14 @@ napoleon_use_rtype = False  # More legible
 autosummary_generate = True
 
 exclude_patterns = ['_build']
+
+# Edit on gitlab link
+html_context = {
+    "display_gitlab": True, # Integrate Gitlab
+    "gitlab_user": "statistical-genetics", # Username
+    "gitlab_host": "gitlab.pasteur.fr",
+    "gitlab_repo": "jass", # Repo name
+    "gitlab_version": "master", # Version
+    "conf_py_path": "/doc/source/", # Path in the checkout to the docs root
+}
+