Skip to content

Commit a34f1c1

Browse files
authored
Fix RTD theme link to GitHub Repo (#319)
* update gh link for rtd build * update gh link for rtd build: patch
1 parent 944bbf8 commit a34f1c1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/source/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,10 @@ def setup(app):
323323
# Set Cookie Banner to disabled by default
324324
cookiebanner_enabled = False
325325

326+
html_context = dict()
327+
326328
# Configure for local official-esque builds
327329
if(os.environ.get("LOCAL_DOCS_BUILD") == "true"):
328-
html_context = dict()
329330
html_context['display_lower_left'] = True
330331

331332
html_context['current_version'] = version
@@ -346,6 +347,11 @@ def setup(app):
346347
cookiebanner_enabled = True
347348
extensions.append('sphinx_sitemap')
348349
html_baseurl = os.environ.get("FTCDOCS_URL", default="")
350+
html_context['display_github'] = True
351+
html_context['github_user'] = 'FIRST-Tech-Challenge'
352+
html_context['github_repo'] = 'ftcdocs'
353+
html_context['github_version'] = 'main/docs/source/'
354+
349355

350356
# Configure RTD Theme
351357
html_theme_options = {

0 commit comments

Comments
 (0)