Add themes in-tree

This commit is contained in:
Dave Gallant
2024-01-07 08:49:07 -05:00
parent a5a09666f5
commit 604f3aaa4c
158 changed files with 19674 additions and 47 deletions

View File

@@ -0,0 +1,16 @@
{{ $type := .Get 0 }}
{{ $languages := readDir "node_modules/prismjs/components" }}
{{ $plugins := readDir "node_modules/prismjs/plugins" }}
{{ if eq $type "languages" }}
{{ range after 1 $languages -}}
{{ $lang := .Name | replaceRE ".*\\.min\\.js" "" | replaceRE "prism-([\\w-]*).js" "${1}" -}}
{{ if not (eq $lang "") }}
{{ $lang -}}
{{ end -}}
{{ end }}
{{ else if eq $type "plugins" }}
{{ range $plugins }}
{{ path.Base .Name -}}
{{ end }}
{{ end }}