From a34f1c1c96fac28f025648e735f1de871fbe2bfd Mon Sep 17 00:00:00 2001 From: Uday Vidyadharan <55924756+uvidyadharan@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:55:11 -0500 Subject: [PATCH] Fix RTD theme link to GitHub Repo (#319) * update gh link for rtd build * update gh link for rtd build: patch --- docs/source/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 3842eb44..9f602b75 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -323,9 +323,10 @@ def setup(app): # Set Cookie Banner to disabled by default cookiebanner_enabled = False +html_context = dict() + # Configure for local official-esque builds if(os.environ.get("LOCAL_DOCS_BUILD") == "true"): - html_context = dict() html_context['display_lower_left'] = True html_context['current_version'] = version @@ -346,6 +347,11 @@ def setup(app): cookiebanner_enabled = True extensions.append('sphinx_sitemap') html_baseurl = os.environ.get("FTCDOCS_URL", default="") + html_context['display_github'] = True + html_context['github_user'] = 'FIRST-Tech-Challenge' + html_context['github_repo'] = 'ftcdocs' + html_context['github_version'] = 'main/docs/source/' + # Configure RTD Theme html_theme_options = {