-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
netlify.toml
61 lines (52 loc) · 1.64 KB
/
netlify.toml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[build.environment]
PYTHON_VERSION = "3.8" # Netlify currently only supports 2.7 and 3.8
HUGO_VERSION = "0.135.0"
DART_SASS_VERSION = "1.79.4"
DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/"
[[plugins]]
package = "netlify-plugin-checklinks"
[plugins.inputs]
recursive = true # check links in subdirectories
checkExternal = false # we are already using Lychee to check external links
# ignore pybamm.org/slack and pybamm.org/benchmarks
skipPatterns = [
"pybamm.org/slack",
"pybamm.org/benchmarks"
]
[context.deploy-preview]
ignore = "false"
[[plugins]]
package = "@netlify/plugin-lighthouse"
# optional, fails build when a category is below a threshold
# [plugins.inputs.thresholds]
# performance = 0.85
# accessibility = 0.95
# best-practices = 0.95
# seo = 0.95
# pwa = 0.2
# optional, deploy the lighthouse report to a path under your site
# [plugins.inputs]
# output_path = "reports/lighthouse.html"
[[redirects]]
from = "/benchmarks"
to = "https://pybamm-team.github.io/pybamm-bench/"
status = 301
[[redirects]]
from = "/slack"
to = "https://join.slack.com/t/pybamm/shared_invite/zt-1xwnvkqrb-6ZKgB8yBU3zuzH91USdv_A"
status = 301
[[redirects]]
from = "/*"
to = "/404/"
status = 404
[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 && \
hugo --gc --minify
"""