From d048c80459f3405455fda5217253fea48ca44d95 Mon Sep 17 00:00:00 2001 From: Jayadityas Date: Sat, 28 Feb 2026 17:43:23 +0530 Subject: [PATCH 1/3] Added rbenv setup for windows --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 2f66af0bafb..1b86a0153a1 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,17 @@ First install [`pre-commit`](https://repology.org/project/python:pre-commit/vers The website is using [Jekyll](https://jekyllrb.com/) static website generator and [Github pages](https://pages.github.com/). To run and develop it locally you need to install [`rbenv`](rbenv.org) using `apt install rbenv ruby-build`. Then use `rbenv init` and follow the instructions to set it up. + +rbenv was built specifically for Unix-like environments. So windows users can install rbenv through WSL 2. + +Run in PowerShell + + ```bash + wsl --install + ``` + +Open the Ubuntu terminal and run `apt install rbenv ruby-build` .Then use `rbenv init` and follow the instructions mentioned below to set it up. + With `rbenv` installed and activated in your shell: ```bash From d436ff6ffaeabe4597051ea70ffd3a9dd478473d Mon Sep 17 00:00:00 2001 From: Jayadityas Date: Sat, 28 Feb 2026 18:05:20 +0530 Subject: [PATCH 2/3] Updated the news-collect.js --- js/news-collect.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/news-collect.js b/js/news-collect.js index 28d2abcb662..5913cca3a32 100644 --- a/js/news-collect.js +++ b/js/news-collect.js @@ -8,7 +8,9 @@ document.addEventListener("DOMContentLoaded", async function () { const data = await response.json(); let topics = data.topics || []; - if (!topics.length) throw new Error("No topics found"); + if (topics.length === 0) { + throw new Error("No news topics found in the JSON data."); + } topics.sort((a, b) => new Date(b.created_at || b.last_posted_at) - new Date(a.created_at || a.last_posted_at)); loadingText.style.display = "none"; From 6fc36f3267cb86e055b32a7effb1a0939ad83409 Mon Sep 17 00:00:00 2001 From: Jayadityas Date: Sat, 28 Feb 2026 18:12:17 +0530 Subject: [PATCH 3/3] Updated news-collect.js --- js/news-collect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/news-collect.js b/js/news-collect.js index 5913cca3a32..f3b64b0766b 100644 --- a/js/news-collect.js +++ b/js/news-collect.js @@ -17,7 +17,7 @@ document.addEventListener("DOMContentLoaded", async function () { for (const topic of topics.slice(0, 3)) { const col = document.createElement("div"); - col.className = "col-md-4 col-sm-6 col-xs-12"; + col.className = "col-md-4 col-sm-6 col-xs-12 mb-4"; const card = document.createElement("div"); card.className = "news-card";