Skip to content

Commit

Permalink
Update Netlify deploy script
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 9b6ffba commit b3b4810
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/docs-chef-io/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ preview_netlify: chef_web_docs
cp -R layouts/* chef-web-docs/_vendor/github.com/chef/automate/components/docs-chef-io/layouts
cp -R static/* chef-web-docs/_vendor/github.com/chef/automate/components/docs-chef-io/static
cp -R config.toml chef-web-docs/_vendor/github.com/chef/automate/components/docs-chef-io/
pushd chef-web-docs && make bundle; hugo --buildFuture --gc --minify && popd
pushd chef-web-docs && bash ./scripts/netlify-deploy-preview.sh && popd

serve: generate_swagger chef_web_docs
echo "replace github.com/chef/automate/components/docs-chef-io => ../" >> chef-web-docs/go.mod
pushd chef-web-docs && make bundle; hugo server --buildDrafts --buildFuture --noHTTPCache --ignoreVendorPaths "github.com/chef/automate/**" && 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/automate/components/docs-chef-io" && popd

chef_web_docs:
if [ -d "chef-web-docs/" ]; then \
Expand Down

0 comments on commit b3b4810

Please sign in to comment.