Skip to content

Commit

Permalink
Fix version switcher order (#2656)
Browse files Browse the repository at this point in the history
(cherry picked from commit c0d6de2)
  • Loading branch information
adriendupuis committed Mar 5, 2025
1 parent 3c36470 commit 987cf47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 987cf47

Please sign in to comment.