{{ $docs_stable_version := .sv }} {{ $docs_total_versions := .tv }} {{ $docs_type := .docs_type }} {{ $current_version := .cv }} {{ $permalink := .permalink }} {{ $content_file_path := .content_file_path }} {{ $doesnot_exist_ver := slice ""}} {{- range $idx, $i := $docs_total_versions -}} {{ $file_path := print "./content/" (replaceRE "(/v\\d+\\.\\d+|\\/dev|\\/stable)" (print "/" $i) $content_file_path)}} {{- if not (fileExists $file_path) -}} {{ $doesnot_exist_ver = $doesnot_exist_ver | append $i }} {{- end -}} {{- end -}}