feat: Add syntax highlighting to CI

This commit is contained in:
Robert Prehn 2023-09-30 15:53:15 +00:00
parent fd82c51bbc
commit 4fc6a16a86
No known key found for this signature in database
5 changed files with 7 additions and 2 deletions

3
.gitignore vendored
View file

@ -27,3 +27,6 @@ pre_dot_hn-*.tar
# Built Site # Built Site
/priv/static/ /priv/static/
# TreeSitter Parsers
/tree-sitter/_parsers/

View file

@ -8,6 +8,7 @@ pages:
- mix esbuild.install --if-missing - mix esbuild.install --if-missing
- mix tailwind.install --if-missing - mix tailwind.install --if-missing
- mix tree_sitter.install --if-missing - mix tree_sitter.install --if-missing
- (cd tree-sitter/_parsers/;git clone https://github.com/elixir-lang/tree-sitter-elixir; git clone https://github.com/camdencheek/tree-sitter-dockerfile)
- mix assets.build - mix assets.build
- mix pre_dot_hn.build - mix pre_dot_hn.build
- cp -r priv/static/ public - cp -r priv/static/ public

View file

@ -71,7 +71,7 @@ defmodule PreDotHn.Markdown do
{"code", [], [table], %{verbatim: true}} {"code", [], [table], %{verbatim: true}}
end end
def floki2earmark(list) when is_list(list) do def floki2earmark(list) when is_list(list) do
Enum.map(list, &floki2earmark/1) Enum.map(list, &floki2earmark/1)
end end

View file

View file

@ -4,7 +4,8 @@
"/home/prehnra/src", "/home/prehnra/src",
"/home/prehnra/source", "/home/prehnra/source",
"/home/prehnra/projects", "/home/prehnra/projects",
"/home/prehnra/treesitter" "/home/prehnra/treesitter",
"/builds/prehnRA/pre.hn/tree-sitter/_parsers/"
], ],
"theme": { "theme": {
"function": 26, "function": 26,