Skip to content

Commit ed8f983

Browse files
committed
Fix version switcher order (#343)
(cherry picked from commit 3745eb3)
1 parent b4b2ce7 commit ed8f983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/js/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $(document).ready(function() {
5858
$('.rst-current-version.switcher__label').html(version.length ? version : 'Change version');
5959
$('.rst-other-versions.switcher__list dl.versions dd strong').parent().addClass('rtd-current-item');
6060

61-
if ('master' !== (vl = $('.rst-other-versions.switcher__list dl.versions')).find('dd:first').text()) {
61+
if ('latest' !== (vl = $('.rst-other-versions.switcher__list dl.versions')).find('dd:first').text()) {
6262
vl.find('dd').each(function() {
6363
$(this).detach().prependTo(vl);
6464
});

0 commit comments

Comments
 (0)