Display "Edit on Gitlab" button

This commit is contained in:
Yohann D'ANELLO 2021-01-10 11:58:32 +01:00
parent 6d786c7358
commit 92a3081b2e
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 8 additions and 0 deletions

View File

@ -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,
}