From 76026c2e820bfd55cbd342e27e030e9a47899c7f Mon Sep 17 00:00:00 2001 From: Ian Maddaus Date: Tue, 26 Mar 2024 18:40:09 -0400 Subject: [PATCH] Update Netlify deploy method Signed-off-by: Ian Maddaus --- docs-chef-io/Makefile | 6 +++--- docs-chef-io/go.mod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs-chef-io/Makefile b/docs-chef-io/Makefile index 9138186d9..725ef0c80 100644 --- a/docs-chef-io/Makefile +++ b/docs-chef-io/Makefile @@ -15,11 +15,11 @@ preview_netlify: chef_web_docs fi cp -R config.toml chef-web-docs/_vendor/github.com/chef/chef-workstation/docs-chef-io/ - pushd chef-web-docs && make bundle; hugo --buildFuture --gc --minify --environment development && popd + pushd chef-web-docs && bash ./scripts/netlify-deploy-preview.sh && popd serve: chef_web_docs - echo "replace github.com/chef/chef-workstation/docs-chef-io => ../" >> chef-web-docs/go.mod - pushd chef-web-docs && make bundle; hugo server --buildDrafts --buildFuture --noHTTPCache --ignoreVendorPaths "github.com/chef/chef-workstation/**" && 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-workstation/docs-chef-io" && popd chef_web_docs: if [ -d "chef-web-docs/" ]; then \ diff --git a/docs-chef-io/go.mod b/docs-chef-io/go.mod index 7c6137f86..7960cefb0 100644 --- a/docs-chef-io/go.mod +++ b/docs-chef-io/go.mod @@ -1,5 +1,5 @@ module github.com/chef/chef-workstation/docs-chef-io -go 1.14 +go 1.22 require google.golang.org/protobuf v1.25.0 // indirect