-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathnetlify.toml
More file actions
30 lines (26 loc) · 883 Bytes
/
netlify.toml
File metadata and controls
30 lines (26 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[build.environment]
PYTHON_VERSION = "3.13"
HUGO_VERSION = "0.158.0"
DART_SASS_VERSION = "1.93.2"
DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/"
[context.production.environment]
BUILD_TARGET = "theme"
[context.deploy-preview.environment]
BUILD_TARGET = "netlify-preview"
[context.deploy-preview]
ignore = "false"
[build]
base = "doc"
publish = "public"
command = """\
export DART_SASS_TARBALL="dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
(cd /tmp && \
curl -LJO ${DART_SASS_URL}/${DART_SASS_VERSION}/${DART_SASS_TARBALL} && \
tar -xf ${DART_SASS_TARBALL} && \
rm ${DART_SASS_TARBALL}) && \
export PATH=/tmp/dart-sass:$PATH && \
python -m venv .py3 && \
source .py3/bin/activate && \
(cd ../.. && ln -s repo scientific-python-hugo-theme) && \
(cd .. && make ${BUILD_TARGET})
"""