File size: 494 Bytes
2d558b4
 
020b5e8
91d3e8a
445602d
020b5e8
445602d
 
 
1f9f3c2
020b5e8
2d558b4
 
 
 
 
 
 
 
 
91d3e8a
020b5e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
echo "=== Building V.AISTUDIO with SEO stubs ==="

# Install dependencies
pip install huggingface_hub -q

# Run the SEO stub generator
python3 app/run_seo_generation.py

# Also process any standalone HTML files (legacy)
for f in san-pham/*.html; do
  if [ -f "$f" ]; then
    slug="${f#san-pham/}"
    slug="${slug%.html}"
    mkdir -p "san-pham/$slug"
    cp "$f" "san-pham/$slug/index.html"
    echo "Copied $f -> san-pham/$slug/index.html"
  fi
done

echo "Build complete"