Skip to content
Snippets Groups Projects
Commit a945fad6 authored by rahix's avatar rahix
Browse files

docs: Show "Edit on Gitlab" button

Makes it super easy to fix the documentation.
parent 1f0fc3be
No related branches found
No related tags found
1 merge request!127Sphinx Tweaks
Pipeline #6630 passed
......@@ -53,6 +53,18 @@ html_theme_options = {
'style_external_links': True,
}
# Show "Edit on GitLab" links
html_show_sourcelink = False
html_context = {
'display_gitlab': True,
'gitlab_host': "git.flow3r.garden",
'gitlab_user': "flow3r",
'gitlab_repo': "flow3r-firmware",
'gitlab_version': "main/",
'conf_py_path': "docs/",
'theme_vcs_pageview_mode': "edit",
}
def setup(app):
tmpdir = "_build/mypystubs"
shutil.rmtree(tmpdir, ignore_errors=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment