forked from tlevine/dev.socrata.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·31 lines (23 loc) · 1.04 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
28
29
30
31
jekyll:
bundle exec jekyll build
clean:
rm -rf public
htmlproof:
bundle exec htmlproof ./public --only-4xx --check-html --href-ignore "/#/,/\/foundry/,/\/register/,/APP_TOKEN/"
# Generates a build stamp and plugs it into a file in public
stamp:
echo "SHA: `git rev-parse HEAD`" > ./public/build.txt
echo "Date: `date`" >> ./public/build.txt
done:
if [[ -x /usr/local/bin/terminal-notifier && -x /usr/local/bin/reattach-to-user-namespace ]]; then \
reattach-to-user-namespace terminal-notifier -message "Done!"; \
fi
# Pushes updated taglines file. Since this requires my password, you (probably) can't run it...
taglines:
curl --user chris.metcalf@socrata.com -X PUT --data @taglines.json --header "Content-type: application/json" --header "X-App-Token: bjp8KrRvAPtuf809u1UXnI0Z8" https://soda.demo.socrata.com/resource/etih-7ix2.json
surge:
surge --project ./public --domain https://$(DOMAIN)
# Default: Build the site
all: clean jekyll stamp done
# Builds the site and runs linklint to check for bad links
test: clean jekyll stamp htmlproof done