chore(deps): bump chroma to v2 #735

Bump `alecthomas/chroma` to `v2`:
https://github.com/cheat/cheat/issues/735
This commit is contained in:
Christopher Allen Lane
2023-12-13 12:54:32 -05:00
parent 6bf51e758f
commit 1790aec85d
600 changed files with 41727 additions and 17815 deletions

23
vendor/github.com/alecthomas/chroma/v2/Makefile generated vendored Normal file
View File

@ -0,0 +1,23 @@
.PHONY: chromad upload all
VERSION ?= $(shell git describe --tags --dirty --always)
export GOOS ?= linux
export GOARCH ?= amd64
all: README.md tokentype_string.go
README.md: lexers/*/*.go
./table.py
tokentype_string.go: types.go
go generate
chromad:
rm -rf build
esbuild --bundle cmd/chromad/static/index.js --minify --outfile=cmd/chromad/static/index.min.js
esbuild --bundle cmd/chromad/static/index.css --minify --outfile=cmd/chromad/static/index.min.css
(export CGOENABLED=0 ; cd ./cmd/chromad && go build -ldflags="-X 'main.version=$(VERSION)'" -o ../../build/chromad .)
upload: build/chromad
scp build/chromad root@swapoff.org: && \
ssh root@swapoff.org 'install -m755 ./chromad /srv/http/swapoff.org/bin && service chromad restart'