diff options
author | bnewbold <bnewbold@robocracy.org> | 2017-01-29 01:27:39 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2017-01-29 01:27:39 -0800 |
commit | 068ef64d6464bf87ef5b982fa121d54f9e7889e8 (patch) | |
tree | 894fb03895b244b29d9db073d638bf6c4403f070 | |
parent | 0e664388ee0e494a98c2d5e244b0b60618bd9dc8 (diff) | |
download | modelthing-068ef64d6464bf87ef5b982fa121d54f9e7889e8.tar.gz modelthing-068ef64d6464bf87ef5b982fa121d54f9e7889e8.zip |
script for downloading js junk
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | fetch_js_assets.sh | 20 |
2 files changed, 23 insertions, 0 deletions
@@ -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 |