Skip to content

Commit

Permalink
Merge pull request #3211 from chef/im/update_netlify
Browse files Browse the repository at this point in the history
Update Netlify builds
  • Loading branch information
IanMadd committed Mar 26, 2024
2 parents 486b496 + 0c81743 commit 839df17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion docs-chef-io/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
chef-web-docs/

resources/
resources/
public/

*.work
*.work.sum
6 changes: 3 additions & 3 deletions docs-chef-io/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ preview_netlify: chef_web_docs
fi

cp -R config.toml chef-web-docs/_vendor/github.com/chef/supermarket/docs-chef-io/config.toml
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/supermarket/docs-chef-io => ../" >> chef-web-docs/go.mod
pushd chef-web-docs && make bundle; hugo server --buildDrafts --buildFuture --noHTTPCache --ignoreVendorPaths "github.com/chef/supermarket/**" && 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/supermarket/docs-chef-io" && popd

chef_web_docs:
if [ -d "chef-web-docs/" ]; then \
Expand Down
2 changes: 1 addition & 1 deletion docs-chef-io/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/chef/supermarket/docs-chef-io

go 1.14
go 1.22

0 comments on commit 839df17

Please sign in to comment.