forked from sethkontny/dev.socrata.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
link_dir := $(shell mktemp -d /tmp/linkdoc.XXXX)
# Builds SASS->CSS, compiles the site, and ensures that search.json is updated
# If you've changed content, always commit search.json
all:
-rm search.json
-rm related.json
jekyll build
cp public/search.json public/related.json .
-git add search.json related.json
-terminal-notifier -title "Jekyll" -message "Build complete."
-tput bel
# Builds the site and runs linklint to check for bad links
test: all
linklint -doc ${link_dir} -root public /@
open ${link_dir}/index.html
# Copies JS resources locally so you don't have to do a full jekyll build when hacking JS
jslocal:
cp js/* public/js/
cp common/js/* public/common/js/
cp foundry/*.mst public/foundry/
# Pushes updated taglines file. Since this requires my password, you (probably) can't run it...
taglines:
curl --user [email protected] -X PUT --data @taglines.json --header "Content-type: application/json" --header "X-App-Token: bjp8KrRvAPtuf809u1UXnI0Z8" https://soda.demo.socrata.com/resource/etih-7ix2.json