From 068ef64d6464bf87ef5b982fa121d54f9e7889e8 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 29 Jan 2017 01:27:39 -0800 Subject: script for downloading js junk --- .gitignore | 3 +++ fetch_js_assets.sh | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 fetch_js_assets.sh 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 -- cgit v1.2.3