aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-29 01:27:39 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-29 01:27:39 -0800
commit068ef64d6464bf87ef5b982fa121d54f9e7889e8 (patch)
tree894fb03895b244b29d9db073d638bf6c4403f070
parent0e664388ee0e494a98c2d5e244b0b60618bd9dc8 (diff)
downloadmodelthing-068ef64d6464bf87ef5b982fa121d54f9e7889e8.zip
modelthing-068ef64d6464bf87ef5b982fa121d54f9e7889e8.tar.gz
script for downloading js junk
-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