From 92a3081b2e6b901bf1299f897ce1e6e4b55904be Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 10 Jan 2021 11:58:32 +0100 Subject: [PATCH] Display "Edit on Gitlab" button --- docs/conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 0d65dd0..ffab7ea 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,3 +61,11 @@ html_theme = 'sphinx_rtd_theme' # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + +html_context = { + 'gitlab_user': 'ynerant', + 'gitlab_repo': 'squirrel-battle', + 'gitlab_host': 'gitlab.crans.org', + 'gitlab_version': 'master', + 'display_gitlab': True, +}