Skip to content

Commit e2366d0

Browse files
committed
fix: copy error
1 parent 6140304 commit e2366d0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

build.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,21 @@ cp -r public/admin static/admin
2424
PROJECT_ROOT="$(pwd)"
2525
SRC_DIR="$PROJECT_ROOT/src/decks/prebuilds"
2626
OUT_DIR="$PROJECT_ROOT/static/decks"
27-
@@ -18,5 +25,9 @@ find "$SRC_DIR" -name 'index.html' | while read -r html; do
27+
28+
echo "📦 Inlining Reveal.js HTML decks..."
29+
30+
find "$SRC_DIR" -name 'index.html' | while read -r html; do
31+
rel_path="${html#$SRC_DIR/}"
32+
out_path="$OUT_DIR/$rel_path"
33+
out_dir="$(dirname "$out_path")"
34+
35+
mkdir -p "$out_dir"
36+
37+
echo "✨ Inlining: $rel_path"
2838
npx html-inline --nocompress --inlinemin --root "$PROJECT_ROOT" "$html" > "$out_path"
2939
done
3040

3141
echo "✅ All slide decks inlined to: $OUT_DIR"
3242

3343
echo "🛠️ Building Docusaurus site..."
34-
npm run build
44+
npm run build

0 commit comments

Comments
 (0)