feat: 通过脚本下载所需的语言

This commit is contained in:
uy_sun 2023-09-16 10:02:28 +08:00
parent 65847bb510
commit f729d1f292
3 changed files with 9 additions and 9 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
highlight.zip

View File

@ -9,12 +9,4 @@ git clone https://github.com/he0119/typecho-highlightjs.git HighlightJs
## 支持语言
- 常用的 36 种
- Arduino
- DOS .bat
- Dart
- Dockerfile
- Fortran
- Julia/Julia REPL
- LaTeX
- PowerShell
详见 [fetch](fetch.sh)

7
fetch.sh Normal file
View File

@ -0,0 +1,7 @@
curl 'https://highlightjs.org/api/download' \
-H 'content-type: application/json' \
-H 'origin: https://highlightjs.org' \
-H 'referer: https://highlightjs.org/download' \
--data-raw '{"api":2,"languages":["apache","xml","bash","coffeescript","cpp","csharp","css","markdown","diff","ruby","go","http","ini","java","javascript","json","kotlin","less","lua","makefile","perl","nginx","objectivec","php","php-template","properties","python","python-repl","r","rust","scss","shell","sql","swift","yaml","typescript","vbnet","apache","dockerfile","ini","nginx","properties","yaml","css","less","scss","sql","java","markdown","latex","arduino","http","json","fortran","mathematica","matlab","r","coffeescript","javascript","lua","typescript","cpp","go","rust","swift","django"]}' \
--compressed \
--output highlight.zip