From c1ab0778a5230dab07e26422d618eab1533dd676 Mon Sep 17 00:00:00 2001 From: Deepak Khatri <lorforlinux@beagleboard.org> Date: Sun, 3 Jul 2022 17:10:41 +0530 Subject: [PATCH] Fix "Edit on GitLab" --- conf.py | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/conf.py b/conf.py index 09d39b4f..c358fe6f 100644 --- a/conf.py +++ b/conf.py @@ -54,14 +54,6 @@ html_domain_indices = False html_split_index = True html_show_sourcelink = True html_baseurl = 'https://docs.beagleboard.io/' -html_context = { - "display_gitlab": True, - "gitlab_host": "git.beagleboard.org", - "gitlab_user": "docs", - "gitlab_repo": "docs.beagleboard.io", - "gitlab_version": "main", - "conf_py_path": "/", -} # parse version from 'VERSION' file with open(BBDOCS_BASE / "VERSION") as f: @@ -86,21 +78,13 @@ with open(BBDOCS_BASE / "VERSION") as f: if extra: version += "-" + extra -release = version - -is_release = tags.has("release") -reference_prefix = "" - -if tags.has("publish"): - reference_prefix = f"/{version}" if is_release else "/latest" - -docs_title = "BBDocs / {}".format(version if is_release else "Latest") - html_context = { - "show_license": True, - "docs_title": docs_title, - "is_release": is_release, - "current_version": version, + "display_gitlab": True, + "gitlab_host": "git.beagleboard.org", + "gitlab_user": "docs", + "gitlab_repo": "docs.beagleboard.io", + "gitlab_version": "main", + "conf_py_path": "/", "versions": ( ("latest", "/"), ) -- GitLab