Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RTD theme link to GitHub Repo #319

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading