Update docs makefile

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
This commit is contained in:
Ian Maddaus 2022-03-15 18:29:15 -04:00
parent be0b8fd109
commit a54577152b

View file

@ -6,11 +6,11 @@ preview_netlify: chef_web_docs
cp -R content/* chef-web-docs/_vendor/github.com/inspec/inspec/docs-chef-io/content
cp -R static/* chef-web-docs/_vendor/github.com/inspec/inspec/docs-chef-io/static
cp -R config.toml chef-web-docs/_vendor/github.com/inspec/inspec/docs-chef-io/
pushd chef-web-docs && make assets; hugo --gc --minify --buildFuture && popd
pushd chef-web-docs && make bundle; hugo --gc --minify --buildFuture && popd
serve: chef_web_docs
echo "replace github.com/inspec/inspec/docs-chef-io => ../" >> chef-web-docs/go.mod
pushd chef-web-docs && make assets; hugo server --buildDrafts --buildFuture --noHTTPCache --ignoreVendorPaths "github.com/inspec/inspec/**" && popd
pushd chef-web-docs && make bundle; hugo server --buildDrafts --buildFuture --noHTTPCache && popd
chef_web_docs:
if [ -d "chef-web-docs/" ]; then \