commit 70b52538bf549f56c4cfef67423d4789ac0fdf57 parent b91970d6142590aaaecdd47ff2e8c09f79189f5c Author: arjoonn <arjoonn@midpathsoftware.com> Date: Thu, 26 Feb 2026 13:51:28 +0530 x Diffstat:
| M | scripts/build_image.sh | | | 2 | +- |
| M | scripts/build_site.sh | | | 8 | ++++++++ |
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/build_image.sh b/scripts/build_image.sh @@ -12,7 +12,7 @@ echo "Building Docker image '${IMAGE_NAME}'..." # The repo is NOT baked into the image; it is mounted at runtime via -v. docker build -t "${IMAGE_NAME}" - <<'DOCKERFILE' FROM alpine:latest -RUN apk add --no-cache git ca-certificates stagit bash +RUN apk add --no-cache git ca-certificates stagit bash lowdown WORKDIR /work CMD ["/bin/sh"] DOCKERFILE diff --git a/scripts/build_site.sh b/scripts/build_site.sh @@ -31,6 +31,14 @@ cp -r "${REPO_DIR}/bin" "${PUBLIC_DIR}/binaries" (cd "${BUILD_DIR}" && pwd && stagit -u /releases/git "${REPO_DIR}") cp -r "${BUILD_DIR}/." "${RELEASES_DIR}" +# Render README.md to HTML and replace the stagit-generated version +README_SRC="${REPO_DIR}/README.md" +README_DST="${RELEASES_DIR}/file/README.md.html" +if [[ -f "${README_SRC}" ]]; then + echo "Rendering README.md to HTML via lowdown..." + lowdown -o "${README_DST}" "${README_SRC}" +fi + # Clean up the temporary description file rm -f "${REPO_DIR}/description" rm -rf "${REPO_DIR}/binaries"