mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 13:33:09 -07:00
update prism webdep (#1238)
* update prism to 1.30.0 * split out prism plugins * deps: list all prism langs
This commit is contained in:
parent
d750f3f0d2
commit
59e2d77df9
|
|
@ -7,7 +7,7 @@ ENV ver_asmcrypto=c72492f4a66e17a0e5dd8ad7874de354f3ccdaa5 \
|
||||||
ver_mde=2.18.0 \
|
ver_mde=2.18.0 \
|
||||||
ver_codemirror=5.65.18 \
|
ver_codemirror=5.65.18 \
|
||||||
ver_fontawesome=5.13.0 \
|
ver_fontawesome=5.13.0 \
|
||||||
ver_prism=1.29.0 \
|
ver_prism=1.30.0 \
|
||||||
ver_zopfli=1.0.3
|
ver_zopfli=1.0.3
|
||||||
|
|
||||||
# versioncheck:
|
# versioncheck:
|
||||||
|
|
|
||||||
|
|
@ -1,63 +1,320 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
plugins=(
|
||||||
|
line-highlight
|
||||||
|
line-numbers
|
||||||
|
autolinker
|
||||||
|
)
|
||||||
|
|
||||||
langs=(
|
langs=(
|
||||||
markup
|
markup
|
||||||
css
|
css
|
||||||
clike
|
clike
|
||||||
javascript
|
javascript
|
||||||
|
# abap
|
||||||
|
# abnf
|
||||||
|
# actionscript
|
||||||
|
# ada
|
||||||
|
# agda
|
||||||
|
# al
|
||||||
|
# antlr4
|
||||||
|
# apacheconf
|
||||||
|
# apex
|
||||||
|
# apl
|
||||||
|
# applescript
|
||||||
|
# aql
|
||||||
|
# arduino
|
||||||
|
# arff
|
||||||
|
# armasm
|
||||||
|
# arturo
|
||||||
|
# asciidoc
|
||||||
|
# aspnet
|
||||||
|
# asm6502
|
||||||
|
# asmatmel
|
||||||
autohotkey
|
autohotkey
|
||||||
|
# autoit
|
||||||
|
# avisynth
|
||||||
|
# avro-idl
|
||||||
|
# awk
|
||||||
bash
|
bash
|
||||||
basic
|
basic
|
||||||
batch
|
batch
|
||||||
|
# bbcode
|
||||||
|
# bbj
|
||||||
|
# bicep
|
||||||
|
# birb
|
||||||
|
# bison
|
||||||
|
# bnf
|
||||||
|
# bqn
|
||||||
|
# brainfuck
|
||||||
|
# brightscript
|
||||||
|
# bro
|
||||||
|
# bsl
|
||||||
c
|
c
|
||||||
csharp
|
csharp
|
||||||
cpp
|
cpp
|
||||||
|
# cfscript
|
||||||
|
# chaiscript
|
||||||
|
# cil
|
||||||
|
# cilkc
|
||||||
|
# cilkcpp
|
||||||
|
# clojure
|
||||||
cmake
|
cmake
|
||||||
|
# cobol
|
||||||
|
# coffeescript
|
||||||
|
# concurnas
|
||||||
|
# csp
|
||||||
|
# cooklang
|
||||||
|
# coq
|
||||||
|
# crystal
|
||||||
|
# css-extras
|
||||||
|
# csv
|
||||||
|
# cue
|
||||||
|
# cypher
|
||||||
|
# d
|
||||||
|
# dart
|
||||||
|
# dataweave
|
||||||
|
# dax
|
||||||
|
# dhall
|
||||||
diff
|
diff
|
||||||
|
# django
|
||||||
|
# dns-zone-file
|
||||||
docker
|
docker
|
||||||
|
# dot
|
||||||
|
# ebnf
|
||||||
|
# editorconfig
|
||||||
|
# eiffel
|
||||||
|
# ejs
|
||||||
elixir
|
elixir
|
||||||
|
# elm
|
||||||
|
# etlua
|
||||||
|
# erb
|
||||||
|
# erlang
|
||||||
|
# excel-formula
|
||||||
|
# fsharp
|
||||||
|
# factor
|
||||||
|
# false
|
||||||
|
# firestore-security-rules
|
||||||
|
# flow
|
||||||
|
# fortran
|
||||||
|
# ftl
|
||||||
|
# gml
|
||||||
|
# gap
|
||||||
|
# gcode
|
||||||
|
# gdscript
|
||||||
|
# gedcom
|
||||||
|
# gettext
|
||||||
|
# gherkin
|
||||||
|
# git
|
||||||
glsl
|
glsl
|
||||||
|
# gn
|
||||||
|
# linker-script
|
||||||
go
|
go
|
||||||
|
# go-module
|
||||||
|
# gradle
|
||||||
|
# graphql
|
||||||
|
# groovy
|
||||||
|
# haml
|
||||||
|
# handlebars
|
||||||
|
# haskell
|
||||||
|
# haxe
|
||||||
|
# hcl
|
||||||
|
# hlsl
|
||||||
|
# hoon
|
||||||
|
# http
|
||||||
|
# hpkp
|
||||||
|
# hsts
|
||||||
|
# ichigojam
|
||||||
|
# icon
|
||||||
|
# icu-message-format
|
||||||
|
# idris
|
||||||
|
# ignore
|
||||||
|
# inform7
|
||||||
ini
|
ini
|
||||||
|
# io
|
||||||
|
# j
|
||||||
java
|
java
|
||||||
|
# javadoc
|
||||||
|
# javadoclike
|
||||||
|
# javastacktrace
|
||||||
|
# jexl
|
||||||
|
# jolie
|
||||||
|
# jq
|
||||||
|
# jsdoc
|
||||||
|
# js-extras
|
||||||
json
|
json
|
||||||
|
# json5
|
||||||
|
# jsonp
|
||||||
|
# jsstacktrace
|
||||||
|
# js-templates
|
||||||
|
# julia
|
||||||
|
# keepalived
|
||||||
|
# keyman
|
||||||
kotlin
|
kotlin
|
||||||
|
# kumir
|
||||||
|
# kusto
|
||||||
latex
|
latex
|
||||||
|
# latte
|
||||||
less
|
less
|
||||||
|
# lilypond
|
||||||
|
# liquid
|
||||||
lisp
|
lisp
|
||||||
|
# livescript
|
||||||
|
# llvm
|
||||||
|
# log
|
||||||
|
# lolcode
|
||||||
lua
|
lua
|
||||||
|
# magma
|
||||||
makefile
|
makefile
|
||||||
|
# markdown
|
||||||
|
# markup-templating
|
||||||
|
# mata
|
||||||
matlab
|
matlab
|
||||||
|
# maxscript
|
||||||
|
# mel
|
||||||
|
# mermaid
|
||||||
|
# metafont
|
||||||
|
# mizar
|
||||||
|
# mongodb
|
||||||
|
# monkey
|
||||||
moonscript
|
moonscript
|
||||||
|
# n1ql
|
||||||
|
# n4js
|
||||||
|
# nand2tetris-hdl
|
||||||
|
# naniscript
|
||||||
|
# nasm
|
||||||
|
# neon
|
||||||
|
# nevod
|
||||||
|
# nginx
|
||||||
nim
|
nim
|
||||||
|
# nix
|
||||||
|
# nsis
|
||||||
objectivec
|
objectivec
|
||||||
|
# ocaml
|
||||||
|
# odin
|
||||||
|
# opencl
|
||||||
|
# openqasm
|
||||||
|
# oz
|
||||||
|
# parigp
|
||||||
|
# parser
|
||||||
|
# pascal
|
||||||
|
# pascaligo
|
||||||
|
# psl
|
||||||
|
# pcaxis
|
||||||
|
# peoplecode
|
||||||
perl
|
perl
|
||||||
|
# php
|
||||||
|
# phpdoc
|
||||||
|
# php-extras
|
||||||
|
# plant-uml
|
||||||
|
# plsql
|
||||||
|
# powerquery
|
||||||
powershell
|
powershell
|
||||||
|
# processing
|
||||||
|
# prolog
|
||||||
|
# promql
|
||||||
|
# properties
|
||||||
|
# protobuf
|
||||||
|
# pug
|
||||||
|
# puppet
|
||||||
|
# pure
|
||||||
|
# purebasic
|
||||||
|
# purescript
|
||||||
python
|
python
|
||||||
|
# qsharp
|
||||||
|
# q
|
||||||
|
# qml
|
||||||
|
# qore
|
||||||
r
|
r
|
||||||
|
# racket
|
||||||
|
# cshtml
|
||||||
jsx
|
jsx
|
||||||
|
# tsx
|
||||||
|
# reason
|
||||||
|
# regex
|
||||||
|
# rego
|
||||||
|
# renpy
|
||||||
|
# rescript
|
||||||
|
# rest
|
||||||
|
# rip
|
||||||
|
# roboconf
|
||||||
|
# robotframework
|
||||||
ruby
|
ruby
|
||||||
rust
|
rust
|
||||||
|
# sas
|
||||||
sass
|
sass
|
||||||
scss
|
scss
|
||||||
|
# scala
|
||||||
|
# scheme
|
||||||
|
# shell-session
|
||||||
|
# smali
|
||||||
|
# smalltalk
|
||||||
|
# smarty
|
||||||
|
# sml
|
||||||
|
# solidity
|
||||||
|
# solution-file
|
||||||
|
# soy
|
||||||
|
# sparql
|
||||||
|
# splunk-spl
|
||||||
|
# sqf
|
||||||
sql
|
sql
|
||||||
|
# squirrel
|
||||||
|
# stan
|
||||||
|
# stata
|
||||||
|
# iecst
|
||||||
|
# stylus
|
||||||
|
# supercollider
|
||||||
swift
|
swift
|
||||||
systemd
|
systemd
|
||||||
|
# t4-templating
|
||||||
|
# t4-cs
|
||||||
|
# t4-vb
|
||||||
|
# tap
|
||||||
|
# tcl
|
||||||
|
# tt2
|
||||||
|
# textile
|
||||||
toml
|
toml
|
||||||
|
# tremor
|
||||||
|
# turtle
|
||||||
|
# twig
|
||||||
typescript
|
typescript
|
||||||
|
# typoscript
|
||||||
|
# unrealscript
|
||||||
|
# uorazor
|
||||||
|
# uri
|
||||||
|
# v
|
||||||
|
# vala
|
||||||
vbnet
|
vbnet
|
||||||
|
# velocity
|
||||||
verilog
|
verilog
|
||||||
vhdl
|
vhdl
|
||||||
|
# vim
|
||||||
|
# visual-basic
|
||||||
|
# warpscript
|
||||||
|
# wasm
|
||||||
|
# web-idl
|
||||||
|
# wgsl
|
||||||
|
# wiki
|
||||||
|
# wolfram
|
||||||
|
# wren
|
||||||
|
# xeora
|
||||||
|
# xml-doc
|
||||||
|
# xojo
|
||||||
|
# xquery
|
||||||
yaml
|
yaml
|
||||||
|
# yang
|
||||||
zig
|
zig
|
||||||
)
|
)
|
||||||
|
|
||||||
slangs="${langs[*]}"
|
slangs="${langs[*]}"
|
||||||
slangs="${slangs// /+}"
|
slangs="${slangs// /+}"
|
||||||
|
|
||||||
|
splugins="${plugins[*]}"
|
||||||
|
splugins="${splugins// /+}"
|
||||||
|
|
||||||
for theme in prism-funky prism ; do
|
for theme in prism-funky prism ; do
|
||||||
u="https://prismjs.com/download.html#themes=$theme&languages=$slangs&plugins=line-highlight+line-numbers+autolinker"
|
u="https://prismjs.com/download.html#themes=$theme&languages=$slangs&plugins=$splugins"
|
||||||
echo "$u"
|
echo "$u"
|
||||||
./genprism.py --dir prism-$1 --js-out prism.js --css-out $theme.css "$u"
|
./genprism.py --dir prism-$1 --js-out prism.js --css-out $theme.css "$u"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue