mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Update docs makefile
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
This commit is contained in:
parent
be0b8fd109
commit
a54577152b
1 changed files with 2 additions and 2 deletions
|
@ -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 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 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/
|
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
|
serve: chef_web_docs
|
||||||
echo "replace github.com/inspec/inspec/docs-chef-io => ../" >> chef-web-docs/go.mod
|
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:
|
chef_web_docs:
|
||||||
if [ -d "chef-web-docs/" ]; then \
|
if [ -d "chef-web-docs/" ]; then \
|
||||||
|
|
Loading…
Reference in a new issue