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' + + +
+ + +Interactive visualizations for foundational algorithms and data structures.
+ +Explore stacks, queues, trees, heaps, tries, graphs and more with interactive demos.
+ +Classic DP problems, visualized – from knapsack to LIS and matrix chain multiplication.
+ +