aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rwxr-xr-xfetch_js_assets.sh20
2 files changed, 23 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 6543366..14d48ba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
+webface/static/katex-*
+webface/static/ace-*
+
*.o
*.a
*.pyc
diff --git a/fetch_js_assets.sh b/fetch_js_assets.sh
new file mode 100755
index 0000000..f18cd37
--- /dev/null
+++ b/fetch_js_assets.sh
@@ -0,0 +1,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