Skip to content

Commit 144d638

Browse files
committed
fix: fix quarto render command in makim.yaml
1 parent 1597918 commit 144d638

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.makim.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ groups:
1717
'jupyter nbconvert --to markdown --template=theme/custom-markdown.tpl --output-dir "$(dirname "$0")" --output "index" "$0"' {} \;
1818
1919
# 2) Convert .qmd blog posts to Markdown using Quarto
20-
# This allows us to use .qmd as the single canonical format
21-
# while still feeding Markdown into MkDocs.
20+
# Run quarto render from inside each blog folder (Quarto rejects --output path).
2221
if command -v quarto >/dev/null 2>&1; then
2322
find "$SEARCH_DIR" -name "*.qmd" -exec sh -c \
24-
'quarto render "$0" --to gfm --output "$(dirname "$0")/$(basename "$0" .qmd).md"' {} \;
23+
'dir=$(dirname "$0"); base=$(basename "$0" .qmd); (cd "$dir" && quarto render "$base.qmd" --to gfm)' {} \;
2524
else
2625
echo "[WW] Quarto is not available on PATH; .qmd files will not be rendered."
2726
fi

0 commit comments

Comments
 (0)