summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-04-20 17:04:42 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-25 15:22:12 +0100
commit4b8010810aff8a1a1e3ffe3f6095f1aed8569240 (patch)
tree100e1958c710cd5da46b0f5298132c38238de5c8 /documentation
parent8096431d589f74f4145f335becbd21c40d50fb11 (diff)
downloadpoky-4b8010810aff8a1a1e3ffe3f6095f1aed8569240.tar.gz
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>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/sphinx-static/switchers.js.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/sphinx-static/switchers.js.in b/documentation/sphinx-static/switchers.js.in
index 4966b3033d..7eb0c2ff34 100644
--- a/documentation/sphinx-static/switchers.js.in
+++ b/documentation/sphinx-static/switchers.js.in
@@ -9,7 +9,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
9(function() { 9(function() {
10 'use strict'; 10 'use strict';
11 11
12 var all_versions = { 12 var switcher_versions = {
13 VERSIONS_PLACEHOLDER 13 VERSIONS_PLACEHOLDER
14 }; 14 };
15 15
@@ -65,7 +65,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
65 function build_version_select(current_series, current_version) { 65 function build_version_select(current_series, current_version) {
66 var buf = ['<select>']; 66 var buf = ['<select>'];
67 67
68 $.each(all_versions, function(version, vers_data) { 68 $.each(switcher_versions, function(version, vers_data) {
69 var series = version.substr(0, 3); 69 var series = version.substr(0, 3);
70 if (series == current_series) { 70 if (series == current_series) {
71 if (version == current_version) 71 if (version == current_version)
@@ -218,7 +218,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
218 $('.doctype_switcher_placeholder select').bind('change', on_doctype_switch); 218 $('.doctype_switcher_placeholder select').bind('change', on_doctype_switch);
219 219
220 if (release != "dev") { 220 if (release != "dev") {
221 $.each(all_versions, function(version, vers_data) { 221 $.each(switcher_versions, function(version, vers_data) {
222 var series = version.substr(0, 3); 222 var series = version.substr(0, 3);
223 if (series == current_series) { 223 if (series == current_series) {
224 if (version != release) { 224 if (version != release) {