forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
29 lines (24 loc) · 1.04 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
[build]
# This default build command adds the robots noindex directive to the site headers.
# It is turned off for only for the production site by using [context.master] below
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
publish = "public"
functions = "functions"
command = "git submodule update --init --recursive --depth 1 && make non-production-build"
[build.environment]
NODE_VERSION = "10.20.0"
HUGO_VERSION = "0.87.0"
RUBY_VERSION = "3.0.1"
[context.production.environment]
HUGO_BASEURL = "https://kubernetes.io/"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.deploy-preview]
command = "git submodule update --init --recursive --depth 1 && make deploy-preview"
[context.branch-deploy]
command = "git submodule update --init --recursive --depth 1 && make non-production-build"
[context.main]
# This context is triggered by the `main` branch and allows search indexing
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
publish = "public"
command = "git submodule update --init --recursive --depth 1 && make production-build"