Skip to content

Commit

Permalink
Fix version switcher in documentation
Browse files Browse the repository at this point in the history
The url_template configuration option was removed in pydata_sphinx_theme as a
result of pydata/pydata-sphinx-theme#600
  • Loading branch information
paulromano committed Jul 12, 2022
1 parent e149b94 commit ea5eb6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions doc/source/_static/switcher.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
[
{
"name": "dev",
"version": "latest"
"version": "latest",
"url": "https://watts.readthedocs.io/en/latest/"
},
{
"name": "0.2.0",
"version": "v0.2.0"
"version": "v0.2.0",
"url": "https://watts.readthedocs.io/en/v0.2.0/"
},
{
"name": "0.1.0",
"version": "v0.1.0"
"version": "v0.1.0",
"url": "https://watts.readthedocs.io/en/v0.1.0/"
}
]
1 change: 0 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
],
"switcher": {
"json_url": "https://watts.readthedocs.io/en/latest/_static/switcher.json",
"url_template": "https://watts.readthedocs.io/en/{version}/",
"version_match": version if '-dev' not in version else 'dev',
},
"navbar_end": ["version-switcher", "navbar-icon-links"],
Expand Down

0 comments on commit ea5eb6a

Please sign in to comment.