File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments