1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl -p unzip
9 if [ ! -f "./update.sh" ]; then
10 echo "Please run this script from within pkgs/misc/documentation-highlighter/!"
14 scratch
=$
(mktemp
-d -t tmp.XXXXXXXXXX
)
26 -H 'Content-Type: application/json' \
29 "languages": ["bash", "nix", "shell"]
31 https
://highlightjs.org
/api
/download
> $scratch/out.
zip
34 unzip "$scratch/out.zip"
37 cp .
/highlight.min.js
"$out/highlight.pack.js"
38 cp .
/{LICENSE
,styles
/mono-blue.css
} "$out"
41 echo "This file was generated with pkgs/misc/documentation-highlighter/update.sh"