File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,21 @@ cp -r public/admin static/admin
24
24
PROJECT_ROOT=" $( pwd) "
25
25
SRC_DIR=" $PROJECT_ROOT /src/decks/prebuilds"
26
26
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 "
28
38
npx html-inline --nocompress --inlinemin --root " $PROJECT_ROOT " " $html " > " $out_path "
29
39
done
30
40
31
41
echo " ✅ All slide decks inlined to: $OUT_DIR "
32
42
33
43
echo " 🛠️ Building Docusaurus site..."
34
- npm run build
44
+ npm run build
You can’t perform that action at this time.
0 commit comments