{{ if eq (getenv "HUGO_ENV") "production" -}}
{{ else -}}
{{- end }}
{{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}}
{{- end }}
{{- $vendor := resources.Match "js/vendor/*.js" -}}
{{- $js := resources.Match "js/src/*.js" -}}
{{- $targetDocsJSPath := printf "/docs/%s/assets/js/docs.js" .Site.Params.docs_version -}}
{{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}}
{{- if (eq (getenv "HUGO_ENV") "production") -}}
{{- $docsJs = $docsJs | resources.Minify -}}
{{- end }}