From e49564d1d67341a879a86e91989798e3d1a0fd30 Mon Sep 17 00:00:00 2001 From: Ian Maddaus Date: Tue, 26 Mar 2024 11:56:22 -0400 Subject: [PATCH] Update Netlify deploy command Signed-off-by: Ian Maddaus --- docs-chef-io/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs-chef-io/Makefile b/docs-chef-io/Makefile index fe8e604fbf..3cd7fd951a 100644 --- a/docs-chef-io/Makefile +++ b/docs-chef-io/Makefile @@ -12,11 +12,11 @@ preview_netlify: chef_web_docs cp -R layouts chef-web-docs/_vendor/github.com/chef/chef-server/docs-chef-io; \ fi - pushd chef-web-docs && make bundle; hugo --buildFuture --gc --minify && popd + pushd chef-web-docs && bash ./scripts/netlify-deploy-preview.sh && popd serve: chef_web_docs - echo "replace github.com/chef/chef-server/docs-chef-io => ../" >> chef-web-docs/go.mod - pushd chef-web-docs && make bundle; hugo server --buildDrafts --buildFuture --noHTTPCache --ignoreVendorPaths "github.com/chef/chef-server/**" && popd + printf "go 1.22\n\nuse .\nuse ../" > chef-web-docs/hugo.work + pushd chef-web-docs && make bundle && HUGO_MODULE_WORKSPACE=hugo.work hugo server --buildDrafts --buildFuture --noHTTPCache --ignoreVendorPaths "github.com/chef/chef-server/docs-chef-io" && popd chef_web_docs: if [ -d "chef-web-docs/" ]; then \