bep40 commited on
Commit
2d558b4
·
verified ·
1 Parent(s): adddf42

Upload build.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. build.sh +13 -0
build.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+ # Build step: copy standalone product pages to URL paths
4
+ for f in san-pham/*.html; do
5
+ if [ -f "$f" ]; then
6
+ slug="${f#san-pham/}"
7
+ slug="${slug%.html}"
8
+ mkdir -p "san-pham/$slug"
9
+ cp "$f" "san-pham/$slug/index.html"
10
+ echo "Copied $f -> san-pham/$slug/index.html"
11
+ fi
12
+ done
13
+ echo "Build complete"