From c19dfac86f6b934b0608f8e66e4c0d4c611806e4 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Wed, 8 Apr 2026 21:06:31 -0400 Subject: refactor: Preprocess Markdown Files Rather than converting markdown files to html on every request, pre convert them during build of the container. --- MdToHtml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 MdToHtml (limited to 'MdToHtml') diff --git a/MdToHtml b/MdToHtml new file mode 100755 index 0000000..39194af --- /dev/null +++ b/MdToHtml @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +for FILE in $(find static -type f -name "*.md"); +do + echo "Processing $FILE..." + pandoc -t html -f markdown "$FILE" > "$(echo "$FILE" | sed 's|\.md$|.html|')" + echo "Done" +done + -- cgit v1.2.3