2018-05-05 16:00:51 +00:00
|
|
|
[build]
|
2018-08-06 21:19:16 +00:00
|
|
|
# This default build command adds the robots noindex directive to the site headers.
|
2022-10-06 11:36:52 +00:00
|
|
|
# It is turned off for only for the production site by using [context.main] below
|
2020-04-21 21:55:07 +00:00
|
|
|
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
|
2018-05-05 16:00:51 +00:00
|
|
|
publish = "public"
|
2018-10-03 20:04:39 +00:00
|
|
|
functions = "functions"
|
2024-06-10 07:27:06 +00:00
|
|
|
command = "git submodule update --init --recursive --depth 1 && make non-production-build && npx -y pagefind --site public"
|
2018-05-05 16:00:51 +00:00
|
|
|
|
2018-08-02 22:41:27 +00:00
|
|
|
[build.environment]
|
2024-08-21 20:36:23 +00:00
|
|
|
NODE_VERSION = "20.17.0"
|
2024-08-23 15:37:52 +00:00
|
|
|
HUGO_VERSION = "0.133.0"
|
2018-08-02 22:41:27 +00:00
|
|
|
|
2018-05-05 16:00:51 +00:00
|
|
|
[context.production.environment]
|
|
|
|
HUGO_BASEURL = "https://kubernetes.io/"
|
|
|
|
HUGO_ENV = "production"
|
|
|
|
HUGO_ENABLEGITINFO = "true"
|
|
|
|
|
2016-09-07 23:37:43 +00:00
|
|
|
[context.deploy-preview]
|
2024-06-10 07:27:06 +00:00
|
|
|
command = "git submodule update --init --recursive --depth 1 && make deploy-preview && npx -y pagefind --site public"
|
2018-05-05 16:00:51 +00:00
|
|
|
|
|
|
|
[context.branch-deploy]
|
2024-06-10 07:27:06 +00:00
|
|
|
command = "git submodule update --init --recursive --depth 1 && make non-production-build && npx -y pagefind --site public"
|
2018-08-06 21:19:16 +00:00
|
|
|
|
2024-12-09 22:16:40 +00:00
|
|
|
[context.production]
|
|
|
|
# Rather than specifying context.main, which will supersede any of the above
|
|
|
|
# context, make a production specific build separately based on the context
|
|
|
|
# with the same priority.
|
|
|
|
# Ref: https://docs.netlify.com/configure-builds/file-based-configuration/#deploy-contexts
|
2018-08-06 21:19:16 +00:00
|
|
|
publish = "public"
|
2024-06-10 07:27:06 +00:00
|
|
|
command = "git submodule update --init --recursive --depth 1 && make production-build && npx -y pagefind --site public"
|