From 1f863190f78da9fa5f35e356086feeeaee373bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 5 Sep 2018 19:37:44 -0400 Subject: [PATCH] Add Edit on GitLab links --- conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf.py b/conf.py index c5bca90..85b19be 100644 --- a/conf.py +++ b/conf.py @@ -115,6 +115,14 @@ html_static_path = ['_static'] # # html_sidebars = {} +# Add context to make Edit on GitLab links. Borrowed from Drutopia docs config. +html_context = { + "display_gitlab": True, # Integrate Gitlab + "gitlab_user": "agaric", # Organization + "gitlab_repo": "documentation", # Repo name + "gitlab_version": "master", # Version + "conf_py_path": "/", # Path in the checkout to the docs root +} # -- Options for HTMLHelp output ---------------------------------------------