Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Netlify deploy command #3791

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading