Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muhd-umer committed Aug 12, 2023
1 parent b5a4850 commit c574aa7
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,13 @@
"simcomm.css",
]

# json_url = "https://raw.githubusercontent.com/muhd-umer/simcomm/main/docs/source/_static/switcher.json"
json_url = "https://raw.githubusercontent.com/muhd-umer/simcomm/main/docs/source/_static/switcher.json"

# if "dev" in release or "rc" in release:
# version_match = "dev"
# json_url = "_static/switcher.json"
# else:
# version_match = "v" + release

version_match = "v" + release
if "dev" in release or "rc" in release:
version_match = "dev"
json_url = "_static/switcher.json"
else:
version_match = "v" + release

html_theme_options = {
"icon_links": [
Expand All @@ -98,12 +96,12 @@
"footer_start": ["copyright"],
"navbar_start": ["navbar-logo"],
"navbar_align": "left",
# "navbar_center": ["navbar-nav", "version-switcher"],z
"navbar_center": ["navbar-nav"],
# "switcher": {
# "json_url": json_url,
# "version_match": version_match,
# },
"navbar_center": ["navbar-nav", "version-switcher"],
# "navbar_center": ["navbar-nav"],
"switcher": {
"json_url": json_url,
"version_match": version_match,
},
"show_toc_level": 3,
"show_nav_level": 3,
}
Expand Down

0 comments on commit c574aa7

Please sign in to comment.