Add Edit on GitLab links
This commit is contained in:
parent
a998df496b
commit
1f863190f7
1 changed files with 8 additions and 0 deletions
8
conf.py
8
conf.py
|
@ -115,6 +115,14 @@ html_static_path = ['_static']
|
||||||
#
|
#
|
||||||
# html_sidebars = {}
|
# 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 ---------------------------------------------
|
# -- Options for HTMLHelp output ---------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue