diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/scss.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/scss.html index 314069a1bd..b9c9dd7083 100644 --- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/scss.html +++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/scss.html @@ -1,9 +1,15 @@ +{{- /* Partial to load SCSS/CSS assets */ -}} +{{- /* See https://gohugo.io/functions/css/sass/ */ -}} + +{{ $silenceSassDeprecations := slice "mixed-decls" "color-functions" "global-builtin" "import"}} {{ $options := dict "transpiler" "dartsass" "vars" site.Params.styles "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "node_modules") + "silenceDeprecations" (cond hugo.IsDevelopment $silenceSassDeprecations "") + "outputStyle" (cond hugo.IsDevelopment "expanded" "compressed") }} {{ if hugo.Environment | eq "development" }} {{- $style := resources.Get "sass/main.scss" | toCSS $options }} diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/utility-bar.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/utility-bar.html index 0f8b5bbe26..2f02a5bff0 100644 --- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/utility-bar.html +++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/utility-bar.html @@ -1,8 +1,10 @@