This commit is contained in:
parent
b700098672
commit
934fbb9856
4 changed files with 65 additions and 7 deletions
|
@ -23,15 +23,20 @@ jobs:
|
|||
apt update
|
||||
apt install -y curl libluajit-5.1-2 unzip
|
||||
|
||||
curl -L https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v0.22.6.zip -o tree-sitter.zip
|
||||
unzip tree-sitter.zip -d /workspace/coding-agent/startseite/tree-sitter
|
||||
alias tree-sitter=/workspace/coding-agent/startseite/tree-sitter
|
||||
git update-index --chmod=+x /workspace/coding-agent/startseite/tree-sitter
|
||||
tree-sitter -h
|
||||
|
||||
curl -L https://git.mzte.de/LordMZTE/confgen/releases/download/v0.3.1/confgen-linux-x86_64.zip -o confgen.zip
|
||||
unzip confgen.zip -d /tmp/confgen
|
||||
|
||||
curl -L https://github.com/tree-sitter/tree-sitter/releases/download/v0.22.6/tree-sitter-linux-x64.gz | gunzip >/tmp/tree-sitter
|
||||
chmod +x /tmp/tree-sitter
|
||||
export PATH="/tmp:$PATH"
|
||||
tree-sitter init-config
|
||||
|
||||
rm /root/.config/tree-sitter/config.json
|
||||
cp ./tree-sitter/config.json /root/.config/tree-sitter/
|
||||
|
||||
git clone https://git.mzte.de/coding-agent/ts-parsers.git
|
||||
mv ts-parsers /tmp/
|
||||
|
||||
/tmp/confgen/bin/confgen confgen.lua _site/
|
||||
- name: Rsync deployments
|
||||
uses: https://github.com/burnett01/rsync-deployments@5.2
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
cg.addPath('articles', '.')
|
||||
|
||||
cg.addFile('index.html.cgt')
|
||||
cg.addFile('style.css.cgt')
|
||||
|
||||
|
|
54
tree-sitter/config.json
Normal file
54
tree-sitter/config.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"parser-directories": [
|
||||
"/tmp/ts-parsers"
|
||||
],
|
||||
"theme": {
|
||||
"constant.builtin": {
|
||||
"color": "#E1E1E1",
|
||||
"bold": true
|
||||
},
|
||||
"comment": {
|
||||
"color": "#AAAA72",
|
||||
"italic": true
|
||||
},
|
||||
"constant": "#E1E1E1",
|
||||
"number": {
|
||||
"bold": true,
|
||||
"color": "#FF7457"
|
||||
},
|
||||
"variable.builtin": {
|
||||
"bold": true
|
||||
},
|
||||
"attribute": {
|
||||
"italic": true,
|
||||
"color": "#6688FF"
|
||||
},
|
||||
"punctuation.bracket": "#FFFFFF",
|
||||
"operator": {
|
||||
"color": "#F7A41D",
|
||||
"bold": true
|
||||
},
|
||||
"string.special": "#F7A41D",
|
||||
"keyword": "#FFFFFF",
|
||||
"string": "#22EE53",
|
||||
"type.builtin": {
|
||||
"color": "#6688FF",
|
||||
"bold": true
|
||||
},
|
||||
"embedded": null,
|
||||
"function.builtin": {
|
||||
"color": "#6688FF",
|
||||
"bold": true
|
||||
},
|
||||
"module": "#6688FF",
|
||||
"function": "#FFFFFF",
|
||||
"punctuation.delimiter": "#6688FF",
|
||||
"tag": "#6688FF",
|
||||
"type": "#6688FF",
|
||||
"variable.parameter": {
|
||||
"underline": true
|
||||
},
|
||||
"property": "#6688FF",
|
||||
"constructor": "#6688FF"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue