Skip to content

feat: add searchable GitHub Pages site for solutions - #247

Merged
Huerte merged 6 commits into
Huerte:mainfrom
Aaqibhafeezkhan:feat/github-pages-solutions-search
Nov 12, 2026
Merged

Huerte merged 6 commits into
Huerte:mainfrom
Aaqibhafeezkhan:feat/github-pages-solutions-search

Conversation

@Aaqibhafeezkhan

@Aaqibhafeezkhan Aaqibhafeezkhan commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Create a fully functional GitHub Pages site for searching and filtering algorithm solutions by language and problem name. This addresses the need for better discoverability of solutions across the repository.

Features

  • 🔍 Real-time search - Find solutions by problem name or filename
  • 🏷️ Language filter - Filter by Python, JavaScript, C++, or Java
  • 🔗 Direct links - Access problem sources and GitHub files
  • 📱 Responsive design - Works on desktop, tablet, and mobile
  • 🌙 Dark mode - Respects system color scheme preferences
  • 📦 No build step - Works directly with GitHub Pages
  • ⚡ Fast - Client-side filtering for instant results

Implementation

New Files

  1. docs/index.html - Main search interface with filters
  2. docs/style.css - Responsive CSS with light/dark mode support
  3. docs/script.js - Client-side search and filter logic
  4. docs/data.json - Auto-generated index of all solutions
  5. .github/workflows/update-index.yml - CI workflow to regenerate index on every push
  6. .github/scripts/generate-index.py - Index generation script (supports both CI and local use)
  7. generate-index.ps1 - PowerShell script for local index regeneration
  8. docs/README.md - Documentation for the GitHub Pages site

How It Works

  1. Solution files in solutions/<language>/ are scanned for header comments
  2. Problem name and source links are extracted
  3. A JSON index is generated automatically
  4. The web interface loads this JSON and provides real-time filtering
  5. GitHub Actions keeps the index updated when solutions are added/modified

Closes #227

Aaqibhafeezkhan and others added 6 commits November 12, 2026 07:21
Create a web interface for browsing and filtering algorithm solutions by language and problem.

Features:
- 🔍 Real-time search by problem name or file
- 🏷️ Filter by language (Python, JavaScript, C++, Java)
- 🔗 Direct links to problem sources and GitHub files
- 📱 Responsive design with dark mode support
- 📦 No build step required - works directly with GitHub Pages

Files added:
- docs/index.html - Main search interface
- docs/style.css - Responsive styling with dark mode
- docs/script.js - Client-side filtering and search
- docs/data.json - Auto-generated solution index
- .github/workflows/update-index.yml - CI workflow to keep index updated
- .github/scripts/generate-index.py - Index generation script
- generate-index.ps1 - Local script to regenerate index

Closes Huerte#227
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@Huerte

Huerte commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Damn, thank you so much for taking this on! I really appreciate the effort you put into this. I only expected someone to pick up the issue, but you went above and beyond and delivered the whole thing. Didn't expect it to be this complete either. Really means a lot to have people willing to contribute this much to the project. Thank you, man!

@Aaqibhafeezkhan

image

@Huerte
Huerte merged commit 4aa7138 into Huerte:main Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build a simple static website to browse the solutions

2 participants