forked from segmentio/segment-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
35 lines (25 loc) · 827 Bytes
/
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
[build]
# command = "jekyll algolia && yarn build"
# Ignore builds unless [netlify-build] is present in commit message
# ignore = "git log -1 --pretty=%B | ( ! grep -q '\[netlify\-build\]' )"
# Ignore if [netlify-ignore] is present
# Don't build if there are no changes to src/
## ignore = "git diff --quiet HEAD^ HEAD src/"
[context.deploy-preview]
command = "yarn develop"
ignore = "./scripts/ignore.sh"
[context.branch-deploy]
command = "yarn develop-inc"
ignore = "./scripts/ignore.sh"
[[context.branch-deploy.plugins]]
package = "netlify-plugin-jekyll-cache"
[context.branch-deploy.plugins.inputs]
jekyllSource = "/src"
[[redirects]]
from = "/docs/*"
to = "/:splat"
status = 200
[[redirects]]
from = "/docs/assets/docs.bundle.js"
to = "/assets/docs.bundle.js"
status = 200