From 9ee9db028be7f267998d31dfedf189e930f7b907 Mon Sep 17 00:00:00 2001 From: Lakidu Minosha Senarathne <93633069+lakindu1234@users.noreply.github.com> Date: Tue, 30 Sep 2025 22:57:22 +0530 Subject: [PATCH 1/2] Hardcoded array ordering mismatch risk --- en/home-page/docs/assets/js/theme.js | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/en/home-page/docs/assets/js/theme.js b/en/home-page/docs/assets/js/theme.js index 2b1e05318..242ea85e9 100755 --- a/en/home-page/docs/assets/js/theme.js +++ b/en/home-page/docs/assets/js/theme.js @@ -39,7 +39,10 @@ var dropdowns = document.getElementsByClassName('md-tabs__dropdown-link'); var dropdownItems = document.getElementsByClassName('mb-tabs__dropdown-item'); -window.onclick = function(evt) { + +window.onclick = function (evt) { + + var openedDropDowns = document.getElementsByClassName('open'); if(evt.target.className === 'md-tabs__link md-tabs__dropdown-link localLink') { @@ -205,8 +208,13 @@ request.send(); var distributionDropdown = document.getElementById('distribution-select-dropdown'); -const distributionURLList = [ 'micro-integrator','streaming-integrator' ]; -const introductionURL = ['/overview/introduction','/overview/overview']; + + +const distributionMap = { + 'micro-integrator': '/overview/introduction', + 'streaming-integrator': '/overview/overview', +}; + if (distributionDropdown){ let count = 0; @@ -236,8 +244,10 @@ var tocBtn = document.querySelector('.md-sidebar.md-sidebar--secondary #tocToggl var tocClass = document.getElementsByTagName('main')[0]; if (tocBtn) { - tocBtn.onclick = function () { - event.preventDefault(); + + tocBtn.onclick = function (event) { + event.preventDefault(); + tocClass.classList.toggle('hide-toc'); if (tocBtn.innerHTML === "keyboard_arrow_right") { tocBtn.innerHTML = "keyboard_arrow_left"; From 053f47f9a3fe2a7a73552de234eaf0b63415fcdb Mon Sep 17 00:00:00 2001 From: Lakidu Minosha Senarathne <93633069+lakindu1234@users.noreply.github.com> Date: Wed, 1 Oct 2025 16:35:04 +0530 Subject: [PATCH 2/2] =?UTF-8?q?No=20error=20handling=20in=20directory=20cr?= =?UTF-8?q?eation=20..=20parent=20directories=20don=E2=80=99t=20exist,=20m?= =?UTF-8?q?kdirSync=20without=20{=20recursive:=20true=20}=20will=20fail.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tools/config-catalog-generator/scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/micro-integrator/tools/config-catalog-generator/scripts/build.js b/en/micro-integrator/tools/config-catalog-generator/scripts/build.js index 70d83243a..2bc23aa31 100644 --- a/en/micro-integrator/tools/config-catalog-generator/scripts/build.js +++ b/en/micro-integrator/tools/config-catalog-generator/scripts/build.js @@ -40,7 +40,7 @@ const writeFile = () => { }; if (!fs.existsSync(outputPath)) { - fs.mkdirSync(outputPath); + fs.mkdirSync(outputPath, { recursive: true }); writeFile(); } else { rimraf(outputPath + '/*', () => {