From 8bc9fbfeadbbec4ae1a69027b06220690804c910 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Tue, 7 Nov 2023 09:40:12 -0800 Subject: [PATCH] Use dart sass We need this for recent versions of the theme. See https://sass-lang.com/blog/libsass-is-deprecated/ and https://gohugo.io/hugo-pipes/transpile-sass-to-css/#dart-sass. --- netlify.toml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index cb35aa9..fde40dc 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,20 @@ [build.environment] PYTHON_VERSION = "3.8" # netlify currently only support 2.7 and 3.8 - HUGO_VERSION = "0.119.0" + HUGO_VERSION = "0.120.3" + DART_SASS_VERSION = "1.69.4" + DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/" + +[build] + base = "/" + publish = "public" + command = """\ + export DART_SASS_TARBALL="dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \ + curl -LJO ${DART_SASS_URL}/${DART_SASS_VERSION}/${DART_SASS_TARBALL} && \ + tar -xf ${DART_SASS_TARBALL} && \ + rm ${DART_SASS_TARBALL} && \ + export PATH=/opt/build/repo/dart-sass:$PATH && \ + make html \ + """ [[redirects]] from = "/scipylib"