diff --git a/Makefile b/Makefile index 5324f7f389..e8fe304faa 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,10 @@ serve_ignore_vendor: bundle test_theme: bundle HUGO_MODULE_WORKSPACE=hugo.work hugo server --buildDrafts --noHTTPCache --buildFuture --ignoreVendorPaths "github.com/chef/chef-docs-theme" +# https://gohugo.io/troubleshooting/audit/ +audit: bundle + HUGO_MINIFY_TDEWOLFF_HTML_KEEPCOMMENTS=true HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS=true hugo && grep -inorE "<\!-- raw HTML omitted -->|ZgotmplZ|\[i18n\]|\(\)|(<nil>)|hahahugo" public/ + lint: bundle hugo -D