mirror of https://github.com/crossplane/docs.git
Improve Build Speed (#300)
* Adds sed command to uncomment writeStats Signed-off-by: Pete Lumbis <pete@upbound.io> * Enables Hugo writeStats in Netlify environments. Signed-off-by: Pete Lumbis <pete@upbound.io> print config file for troubleshooting Signed-off-by: Pete Lumbis <pete@upbound.io> add build preview settings Signed-off-by: Pete Lumbis <pete@upbound.io> --------- Signed-off-by: Pete Lumbis <pete@upbound.io>
This commit is contained in:
parent
dc4e8d5d40
commit
4b886caef9
|
@ -14,7 +14,7 @@ ignoreFiles:
|
||||||
- README.md
|
- README.md
|
||||||
|
|
||||||
build:
|
build:
|
||||||
writeStats: true
|
# writeStats: true
|
||||||
|
|
||||||
markup:
|
markup:
|
||||||
goldmark:
|
goldmark:
|
||||||
|
|
|
@ -14,8 +14,11 @@ from = "/docs/*"
|
||||||
to = "/:splat"
|
to = "/:splat"
|
||||||
status = 302
|
status = 302
|
||||||
|
|
||||||
|
[context.deploy-preview]
|
||||||
|
command = "sed -i 's/# writeStats: true/writeStats: true/g' config.yaml && cat config.yaml && hugo --minify"
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
command = "hugo --minify "
|
command = "sed -i 's/# writeStats: true/writeStats: true/g' config.yaml && && hugo --minify"
|
||||||
|
|
||||||
# Use [dev] to set configuration overrides for local
|
# Use [dev] to set configuration overrides for local
|
||||||
# development environments run using Netlify Dev - except
|
# development environments run using Netlify Dev - except
|
||||||
|
|
Loading…
Reference in New Issue