fix(build-slides): marp --output rejects multiple inputs — iterate per file
All checks were successful
Build slides / build (push) Successful in 52s
All checks were successful
Build slides / build (push) Successful in 52s
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
90598056d4
commit
d81c3af3b3
1 changed files with 4 additions and 1 deletions
|
|
@ -31,7 +31,10 @@ chmod 777 "$TEMP_OUTPUT"
|
||||||
trap "rm -rf '$TEMP_OUTPUT'" EXIT
|
trap "rm -rf '$TEMP_OUTPUT'" EXIT
|
||||||
|
|
||||||
if command -v marp &>/dev/null; then
|
if command -v marp &>/dev/null; then
|
||||||
marp --html --output "$OUTPUT_DIR/" "${SLIDES[@]}"
|
for slide in "${SLIDES[@]}"; do
|
||||||
|
BASENAME=$(basename "${slide%.*}")
|
||||||
|
marp --html --output "$OUTPUT_DIR/${BASENAME}.html" "$slide"
|
||||||
|
done
|
||||||
else
|
else
|
||||||
echo "marp not found locally — using Docker (marpteam/marp-cli)..."
|
echo "marp not found locally — using Docker (marpteam/marp-cli)..."
|
||||||
for slide in "${SLIDES[@]}"; do
|
for slide in "${SLIDES[@]}"; do
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue