blob: f18cd37d3aba2ba251df3bcb0ac63f751a540c3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
set -x
# KaTeX Text Editor
KATEX_VERSION=0.7.1
KATEX_DIR=webface/static/katex-$KATEX_VERSION
wget https://github.com/Khan/KaTeX/releases/download/v$KATEX_VERSION/katex.tar.gz
tar xf katex.tar.gz
mv katex $KATEX_DIR
rm katex.tar.gz
# ACE Text Editor
ACE_VERSION=1.2.6
ACE_DIR=webface/static/ace-$ACE_VERSION
ACE_URL_PREFIX=https://cdnjs.cloudflare.com/ajax/libs/ace/$ACE_VERSION
mkdir -p $ACE_DIR
curl -s $ACE_URL_PREFIX/ace.js -o $ACE_DIR/ace.js
curl -s $ACE_URL_PREFIX/mode-markdown.js -o $ACE_DIR/mode-markdown.js
curl -s $ACE_URL_PREFIX/theme-twilight.js -o $ACE_DIR/theme-twilight.js
|