diff --git a/.github/workflows/ci-js-pages.yml b/.github/workflows/ci-js-pages.yml index 184aa765..5b6d1cf3 100644 --- a/.github/workflows/ci-js-pages.yml +++ b/.github/workflows/ci-js-pages.yml @@ -40,11 +40,185 @@ jobs: cd algorithms-js npm run build + - name: Prepare Pages artifact (root index + algorithms under /algorithms) + run: | + set -euo pipefail + mkdir -p public/algorithms + # Copy algorithms-js static site into /algorithms + rsync -a --delete --exclude node_modules --exclude .git algorithms-js/ public/algorithms/ + # Create a styled landing page at site root listing available pages + cat > public/index.html << 'EOF' + + + + + + SimplifyLearning – Pages + + + + +
+
+ + SL + SimplifyLearning – Pages + + Explore the sub-sites in this repository +
+ +
+ +
+ All + Algorithms + Data Structures + Dynamic Programming + Board Games +
+
+ +
+
+
+ Live +

A Algorithms (JavaScript UI)

+

Interactive visualizations for foundational algorithms and data structures.

+
+ Open + Source +
+
+ +
+ Coming Soon +

DS Data Structures

+

Explore stacks, queues, trees, heaps, tries, graphs and more with interactive demos.

+
+ Open + Roadmap +
+
+ +
+ Coming Soon +

DP Dynamic Programming

+

Classic DP problems, visualized – from knapsack to LIS and matrix chain multiplication.

+
+ Open + Roadmap +
+
+ +
+ Coming Soon +

BG Board Games

+

Algorithms behind board games: minimax, alpha-beta pruning, heuristics and strategy.

+
+ Open + Roadmap +
+
+
+
+ + +
+ + + + + EOF + - name: Upload artifact if: env.IS_MASTER == 'true' uses: actions/upload-pages-artifact@v3 with: - path: algorithms-js + path: public deploy: name: Deploy to GitHub Pages (master) diff --git a/README.md b/README.md index 7f96a4c0..9266a880 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ ![Open Issues](https://img.shields.io/github/issues/sachinlala/SimplifyLearning?label=Issues&color=006400&style=flat) [![Forks](https://img.shields.io/github/forks/sachinlala/SimplifyLearning.svg?color=darkgreen)](https://github.com/sachinlala/SimplifyLearning/network/members) [![Stars](https://img.shields.io/github/stars/sachinlala/SimplifyLearning.svg)](https://github.com/sachinlala/SimplifyLearning/stargazers) -[![Java CI with Coverage](https://github.com/sachinlala/SimplifyLearning/actions/workflows/ci-java.yml/badge.svg?branch=master)](https://github.com/sachinlala/SimplifyLearning/actions/workflows/ci-java.yml) -[![JavaScript CI with Pages](https://github.com/sachinlala/SimplifyLearning/actions/workflows/ci-js-pages.yml/badge.svg?branch=master)](https://github.com/sachinlala/SimplifyLearning/actions/workflows/ci-js-pages.yml) +Java CI with Coverage +JavaScript CI with Pages ### SL Simplify Learning @@ -13,7 +13,7 @@ ✨ Featuring interactive visualizations and examples to minimize cognitive load and maximize learning. -[![Live Demo](https://img.shields.io/badge/Live%20Demo-4A90E2?style=for-the-badge)](https://sachinlala.github.io/SimplifyLearning/algorithms-js/) +Live Demo ### 🌱 Stages of Learning 🌿 @@ -71,7 +71,7 @@ This is a multi-language mono-repo where you can choose your language of choice: ------- -[![GitHub Pages](https://img.shields.io/badge/GitHub%20Pages-Live-blue?style=for-the-badge&logo=github)](https://sachinlala.github.io/SimplifyLearning/algorithms-js/) +GitHub Pages ------- diff --git a/algorithms-java/README.md b/algorithms-java/README.md index d57ae9b3..787eab19 100644 --- a/algorithms-java/README.md +++ b/algorithms-java/README.md @@ -1,6 +1,6 @@ [![Java](https://img.shields.io/badge/Java-21-darkgreen.svg)](https://openjdk.org/) [![Coverage](https://img.shields.io/badge/Coverage-95%25-darkgreen.svg)](https://coveralls.io/github/sachinlala/SimplifyLearning?branch=master) -[![Java CI with Coverage](https://github.com/sachinlala/SimplifyLearning/actions/workflows/ci-java.yml/badge.svg?branch=master)](https://github.com/sachinlala/SimplifyLearning/actions/workflows/ci-java.yml) +Java CI with Coverage > Comprehensive Java implementations of algorithms with rigorous testing and high code coverage. diff --git a/algorithms-js/README.md b/algorithms-js/README.md index f9e79b94..6df7fdcb 100644 --- a/algorithms-js/README.md +++ b/algorithms-js/README.md @@ -1,6 +1,6 @@ [![JavaScript](https://img.shields.io/badge/JavaScript-ES6+-yellow.svg)](https://developer.mozilla.org/en-US/docs/Web/JavaScript) [![Mobile Friendly](https://img.shields.io/badge/Mobile-Friendly-blue.svg)]() -[![JavaScript CI with Pages](https://github.com/sachinlala/SimplifyLearning/actions/workflows/ci-js-pages.yml/badge.svg?branch=master)](https://github.com/sachinlala/SimplifyLearning/actions/workflows/ci-js-pages.yml) +JavaScript CI with Pages > An interactive collection of algorithms with visual explanations and hands-on examples written in plain JavaScript.