Skip to content

Commit 8680047

Browse files
committed
custom.js: Fix version switcher order
1 parent 908e5a1 commit 8680047

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
@@ -67,7 +67,7 @@ $(document).ready(function() {
6767
$('.rst-current-version.switcher__label').html(version.length ? version : 'Change version');
6868
$('.rst-other-versions.switcher__list dl.versions dd strong').parent().addClass('rtd-current-item');
6969

70-
if ('master' !== (vl = $('.rst-other-versions.switcher__list dl.versions')).find('dd:first').text()) {
70+
if ('latest' !== (vl = $('.rst-other-versions.switcher__list dl.versions')).find('dd:first').text()) {
7171
vl.find('dd').each(function() {
7272
$(this).detach().prependTo(vl);
7373
});

0 commit comments

Comments
 (0)