docs: sphinx-static: switchers.js.in: rename all_versions to switcher_versions

This array only contains versions that can be selected through the
dropdown menu for switching between supported versions.

Therefore, let's rename it to switcher_versions to make its usecase
clearer.

Cc: Quentin Schulz <foss+yocto@0leil.net>
(From yocto-docs rev: 5c3d67751bf3f572a0788d3a4734b80e3453d084)

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Quentin Schulz 2022-04-20 17:04:42 +02:00 committed by Richard Purdie
parent 8245b2b1d5
commit 63e717738f

View File

@ -9,7 +9,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
(function() {
'use strict';
var all_versions = {
var switcher_versions = {
VERSIONS_PLACEHOLDER
};
@ -65,7 +65,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
function build_version_select(current_series, current_version) {
var buf = ['<select>'];
$.each(all_versions, function(version, vers_data) {
$.each(switcher_versions, function(version, vers_data) {
var series = version.substr(0, 3);
if (series == current_series) {
if (version == current_version)
@ -218,7 +218,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
$('.doctype_switcher_placeholder select').bind('change', on_doctype_switch);
if (release != "dev") {
$.each(all_versions, function(version, vers_data) {
$.each(switcher_versions, function(version, vers_data) {
var series = version.substr(0, 3);
if (series == current_series) {
if (version != release) {