diff --git a/docs/js/custom.js b/docs/js/custom.js index d5f0f23d6e..12a5eceb77 100644 --- a/docs/js/custom.js +++ b/docs/js/custom.js @@ -67,7 +67,7 @@ $(document).ready(function() { $('.rst-current-version.switcher__label').html(version.length ? version : 'Change version'); $('.rst-other-versions.switcher__list dl.versions dd strong').parent().addClass('rtd-current-item'); - if ('master' !== (vl = $('.rst-other-versions.switcher__list dl.versions')).find('dd:first').text()) { + if ('latest' !== (vl = $('.rst-other-versions.switcher__list dl.versions')).find('dd:first').text()) { vl.find('dd').each(function() { $(this).detach().prependTo(vl); });