From 4004e832a43721804caf3b59350e374fa06909ac Mon Sep 17 00:00:00 2001 From: Gardener-CICD Bot Date: Fri, 20 Dec 2024 08:43:41 +0000 Subject: [PATCH] update documentation --- _static/js/versions.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/_static/js/versions.js b/_static/js/versions.js index 818bc9969..4958195e0 100644 --- a/_static/js/versions.js +++ b/_static/js/versions.js @@ -1,6 +1,6 @@ const themeFlyoutDisplay = "hidden"; -const themeVersionSelector = "True"; -const themeLanguageSelector = "True"; +const themeVersionSelector = true; +const themeLanguageSelector = true; if (themeFlyoutDisplay === "attached") { function renderLanguages(config) { @@ -8,10 +8,14 @@ if (themeFlyoutDisplay === "attached") { return ""; } + // Insert the current language to the options on the selector + let languages = config.projects.translations.concat(config.projects.current); + languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name)); + const languagesHTML = `
Languages
- ${config.projects.translations + ${languages .map( (translation) => `