From 00e199ad999721040177bc3fcbdfc0f30b262d24 Mon Sep 17 00:00:00 2001 From: shubham oulkar <91728992+ShubhamOulkar@users.noreply.github.com> Date: Sun, 14 Sep 2025 20:02:41 +0530 Subject: [PATCH] feat : improve language picker component (#2040) Signed-off-by: Shubham Oulkar Co-authored-by: Sebastian Beltran --- .github/workflows/lighthouse.yml | 4 +- _data/en/menu.yml | 3 - _includes/header.html | 6 -- _includes/language-picker-mobile.html | 20 ----- _includes/language-picker.html | 33 ++++----- css/style.css | 102 +++++++------------------- js/app.js | 10 --- js/menu.js | 73 ++++++++---------- 8 files changed, 74 insertions(+), 177 deletions(-) delete mode 100644 _includes/language-picker-mobile.html diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index da95f073..04be5e7e 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -29,12 +29,12 @@ jobs: run: | PREVIEW_URL="https://deploy-preview-${{ github.event.pull_request.number }}--expressjscom-preview.netlify.app" echo "PREVIEW_URL=$PREVIEW_URL" >> "$GITHUB_ENV" - MAX_RETRIES=12 + MAX_RETRIES=10 DELAY=10 echo "Checking Netlify preview: $PREVIEW_URL" for i in $(seq 1 $MAX_RETRIES); do - if curl -s --head --max-time 5 "$PREVIEW_URL" | grep "200 OK" > /dev/null; then + if curl -s -I "$PREVIEW_URL" | grep "HTTP/.* 200" > /dev/null; then echo "✅ Preview is live!" echo "skip_lighthouse=false" >> "$GITHUB_ENV" exit 0 diff --git a/_data/en/menu.yml b/_data/en/menu.yml index 456e4bf9..de6f8515 100644 --- a/_data/en/menu.yml +++ b/_data/en/menu.yml @@ -1,6 +1,3 @@ -# Home -home: Home - # Getting started getting_started: Getting started installing: Installing diff --git a/_includes/header.html b/_includes/header.html index 0097cdf7..b0006059 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -12,11 +12,6 @@