Upload build.sh with huggingface_hub
Browse files
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"
|