diff --git a/doc/_static/style.css b/doc/_static/style.css index 8d309315f02..3a48790ab9d 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -185,17 +185,6 @@ ul.icon-bullets { .small-stack { font-size: 0.5em; } -/* ************************************************* Previous / Next buttons */ -.prev-next-bottom a.left-prev:before { - content:"❮\00A0" -} -.prev-next-bottom a.right-next:after { - content:"\00A0❯" -} -.prev-next-bottom a.right-next { - text-align: right; -} - /* *********************************************************** miscellaneous */ .hidden { display: none; diff --git a/doc/_static/versions.json b/doc/_static/versions.json index dbd19a26db7..7d3f711595d 100644 --- a/doc/_static/versions.json +++ b/doc/_static/versions.json @@ -1,11 +1,14 @@ [ { - "name": "v0.24 (devel)", + "name": "1.0 (devel)", "version": "dev" }, { - "name": "v0.23 (stable)", - "version": "stable" + "name": "0.24 (stable)", + "version": "0.24" + }, + { + "version": "0.23" }, { "version": "0.22" diff --git a/doc/_templates/version-switcher.html b/doc/_templates/version-switcher.html deleted file mode 100644 index 21faca95169..00000000000 --- a/doc/_templates/version-switcher.html +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/doc/conf.py b/doc/conf.py index 73acfef9859..b633899a681 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -530,6 +530,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. +switcher_version_match = 'dev' if release.endswith('dev0') else version html_theme_options = { 'icon_links': [ dict(name='GitHub', @@ -552,6 +553,11 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): 'navbar_end': ['version-switcher', 'navbar-icon-links'], 'footer_items': ['copyright'], 'google_analytics_id': 'UA-37225609-1', + 'switcher': { + 'json_url': 'https://mne.tools/dev/_static/versions.json', + 'url_template': 'https://mne.tools/{version}/', + 'version_match': switcher_version_match, + } } # The name of an image file (relative to this directory) to place at the top @@ -604,23 +610,6 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): # variables to pass to HTML templating engine html_context = { 'build_dev_html': bool(int(os.environ.get('BUILD_DEV_HTML', False))), - 'versions_dropdown': { - 'dev': 'v1.0 (devel)', - 'stable': 'v0.24 (stable)', - '0.23': 'v0.23', - '0.22': 'v0.22', - '0.21': 'v0.21', - '0.20': 'v0.20', - '0.19': 'v0.19', - '0.18': 'v0.18', - '0.17': 'v0.17', - '0.16': 'v0.16', - '0.15': 'v0.15', - '0.14': 'v0.14', - '0.13': 'v0.13', - '0.12': 'v0.12', - '0.11': 'v0.11', - }, 'funders': [ dict(img='nih.png', size='3', title='National Institutes of Health'), dict(img='nsf.png', size='3.5', diff --git a/requirements_doc.txt b/requirements_doc.txt index e53d04a1a86..73362f68986 100644 --- a/requirements_doc.txt +++ b/requirements_doc.txt @@ -1,7 +1,7 @@ # requirements for building docs sphinx!=4.1.0 https://github.com/numpy/numpydoc/archive/main.zip -pydata-sphinx-theme>=0.6.3 +https://github.com/pydata/pydata-sphinx-theme/archive/af02a6a5fe5c8f322f148274c5eeb4204638a7f4.zip https://github.com/sphinx-gallery/sphinx-gallery/archive/master.zip sphinxcontrib-bibtex>=2.1.2 memory_profiler