Skip to content

Commit

Permalink
Update Netlify deploy command
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Maddaus <[email protected]>
  • Loading branch information
IanMadd committed Mar 26, 2024
1 parent 10d96e3 commit e49564d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs-chef-io/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit e49564d

Please sign in to comment.