Skip to content

Commit

Permalink
Fix RTD theme link to GitHub Repo (#319)
Browse files Browse the repository at this point in the history
* update gh link for rtd build
* update gh link for rtd build: patch
  • Loading branch information
uvidyadharan authored Oct 11, 2024
1 parent 944bbf8 commit a34f1c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = {
Expand Down

0 comments on commit a34f1c1

Please sign in to comment.