diff --git a/conf.py b/conf.py index c98448ad3..6398fbe89 100644 --- a/conf.py +++ b/conf.py @@ -292,7 +292,9 @@ def _generate_alternate_urls(app, pagename, templatename, context, doctree): _alternate_versions = app.config.versions and app.config.versions.split(',') or [] context['alternate_versions'] = [ (_alternate_version, _build_url(_version=_alternate_version)) - for _alternate_version in _alternate_versions if _alternate_version != version + for _alternate_version in _alternate_versions + if _alternate_version != version + and (_alternate_version != 'master' or pagename.startswith('developer')) ] def _localize(): diff --git a/extensions/switcher/static/js/switcher.js b/extensions/switcher/static/js/switcher.js index ffaec1ec4..41797af51 100644 --- a/extensions/switcher/static/js/switcher.js +++ b/extensions/switcher/static/js/switcher.js @@ -10,7 +10,8 @@ tabs.forEach(tab => { tab.classList.add('tab-pane'); - }) + }); + function select(index) { links.forEach(link => { link.classList.remove('active');