From ea5eb6aef6a399ab280d72ad81480d0975b5fcac Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 7 Jul 2022 12:24:46 -0500 Subject: [PATCH] Fix version switcher in documentation The url_template configuration option was removed in pydata_sphinx_theme as a result of https://github.com/pydata/pydata-sphinx-theme/issues/600 --- doc/source/_static/switcher.json | 9 ++++++--- doc/source/conf.py | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/source/_static/switcher.json b/doc/source/_static/switcher.json index 0aaec783..be42aa6f 100644 --- a/doc/source/_static/switcher.json +++ b/doc/source/_static/switcher.json @@ -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/" } ] diff --git a/doc/source/conf.py b/doc/source/conf.py index 085e80ec..29cc8d04 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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"],