Skip to content

Commit f4be667

Browse files
committed
fix button text on dev version [skip github][skip azp]
1 parent 7438764 commit f4be667

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,12 @@ def append_attr_meth_examples(app, what, name, obj, options, lines):
614614
xl = '5'
615615
xxl = '6'
616616
# variables to pass to HTML templating engine
617+
switcher_version_match = 'dev' if release.endswith('dev0') else version
617618
html_context = {
618619
'build_dev_html': bool(int(os.environ.get('BUILD_DEV_HTML', False))),
619620
'switcher_json_url': 'https://mne.tools/dev/_static/versions.json',
620621
'switcher_template_url': 'https://mne.tools/{version}/',
622+
'switcher_version_match': switcher_version_match,
621623
'funders': [
622624
dict(img='nih.png', size='3', title='National Institutes of Health'),
623625
dict(img='nsf.png', size='3.5',

0 commit comments

Comments
 (0)