Skip to content

Commit efe2f16

Browse files
fix
1 parent 0b1f819 commit efe2f16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/make_mdx.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,19 @@ function convert_to_mdx() {
6363
elif [ "$extension" = "sh" ]; then
6464
lang="bash"
6565
fi
66+
# Create .mdx file with correct code fences
6667
awk -v lang="$lang" 'BEGIN {print "```" lang}
6768
{print}
6869
END {print "```"}' "$f" > "${f}.mdx"
69-
mv "${f}.mdx" "$f"
70+
rm "$f"
7071
else
7172
echo "No files to convert in ${CODE_DIR}"
7273
fi
7374
done
7475
}
7576

77+
78+
7679
convert_to_mdx "${DEST_TARGET_DIR}"
7780
convert_to_mdx "${SRC_TARGET_DIR}"
7881

0 commit comments

Comments
 (0)