-
Notifications
You must be signed in to change notification settings - Fork 66
/
Makefile
22 lines (18 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
default:
cdnjs=https://cdnjs.cloudflare.com/ajax/libs/
.PHONY: js/vendor css/vendor
js/vendor:
curl -s $(cdnjs)es5-shim/4.6.7/es5-shim.min.js > $@/es5-shim.min.js
curl -s $(cdnjs)marked/15.0.2/marked.min.js > $@/marked.min.js
curl -s $(cdnjs)dompurify/3.2.1/purify.min.js > $@/purify.min.js
curl -s $(cdnjs)KaTeX/0.16.9/katex.min.js > $@/katex.min.js
curl -s $(cdnjs)KaTeX/0.16.9/contrib/auto-render.min.js > $@/katex-auto-render.min.js
@echo "💫 Manually download prism.min.js from 'https://prismjs.com/download.html#themes=prism&languages=markup+clike+javascript+julia+python+r'"
css/vendor:
curl -s $(cdnjs)KaTeX/0.16.9/katex.min.css > $@/katex.min.css
curl -sL https://github.com/KaTeX/katex-fonts/archive/master.zip > katex-fonts.zip
rm -rf $@/fonts
unzip -j katex-fonts.zip "katex-fonts-master/fonts/*" -d $@/fonts
rm -f katex-fonts.zip
@echo "💫 Manually download prism.css from 'https://prismjs.com/download.html#themes=prism&languages=markup+clike+javascript+julia+python+r'"
vendor: js/vendor css/vendor