Skip to content

Commit

Permalink
fix pathing and builder python version
Browse files Browse the repository at this point in the history
  • Loading branch information
hzheng40 committed Mar 3, 2024
1 parent f34b9e4 commit 96581e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
python: "3.10"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
Expand Down
31 changes: 6 additions & 25 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# flake8: noqa
import os
import sys
# import f110_gym

sys.path.insert(0, os.path.abspath("../../"))

Expand Down Expand Up @@ -48,39 +47,21 @@
# -- numpydoc -----------------------------------------------------------------
numpydoc_show_class_members = False

# -- versions ----------------------------------------------------------------
version_match = os.environ.get("READTHEDOCS_VERSION")
# release = f110_gym.__version__
release = "1.0.0"
json_url = "https://f1tenth-gym.readthedocs.io/en/latest/_static/switcher.json"
if not version_match or version_match.isdigit() or version_match == "latest":
if "dev" in release or "rc" in release:
version_match = "dev"
json_url = "_static/switcher.json"
else:
version_match = f"v{release}"
elif version_match == "stable":
version_match = f"v{release}"

# -- Theme -------------------------------------------------------------------
html_theme = "pydata_sphinx_theme"
html_favicon = "assets/f1_stickers_02.png"
html_theme_options = {
"logo": {
"image_light": "src/assets/f1tenth_gym_color.svg",
"image_dark": "src/assets/f1tenth_gym.svg",
"image_light": "assets/f1tenth_gym_color.svg",
"image_dark": "assets/f1tenth_gym.svg",
},
"github_url": "https://github.com/f1tenth/f1tenth_gym",
"collapse_navigation": True,
"header_links_before_dropdown": 6,
# Add light/dark mode and documentation version switcher:
"navbar_end": ["theme-switcher", "navbar-icon-links", "version-switcher"],
"switcher": {
"json_url": json_url,
"version_match": version_match,
}
}
html_sidebars = {
"**": ["search-field.html", "sidebar-nav-bs.html", "sidebar-ethical-ads.html"]
"navbar_end": ["theme-switcher", "navbar-icon-links"],
}
# html_sidebars = {
# "**": ["search-field.html", "sidebar-nav-bs.html", "sidebar-ethical-ads.html"]
# }
html_last_updated_fmt = "%b %d, %Y"

0 comments on commit 96581e9

Please sign in to comment.