Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 6 additions & 3 deletions doc/_static/versions.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
11 changes: 0 additions & 11 deletions doc/_templates/version-switcher.html

This file was deleted.

23 changes: 6 additions & 17 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion requirements_doc.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down