-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (21 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
23
24
25
26
27
28
develop:
docker run --rm --volume="$$PWD:/srv/jekyll" -p 4000:4000 -p 35729:35729 -it jekyll/jekyll:4.0 jekyll serve --livereload
dbuild:
docker run --rm --volume="$$PWD:/srv/jekyll" -it jekyll/jekyll:4.0 jekyll build
# See https://github.com/gjtorikian/html-proofer for options
check_links: build
bundle exec htmlproofer --allow_missing_href true --ignore_empty_alt true --ignore_missing_alt true --enforce_https false --swap_urls "^\/ecen323:" --ignore_status_codes "0,200,301,302,403" ./_site
#check_links: build
# bundle exec htmlproofer --alt_ignore="*" --empty_alt_ignore --url-ignore "/diglabqueue.groups.et.byu.net/,/ecen220wiki.groups.et.byu.net/" --allow-hash-href ./_0site
serve:
bundle exec jekyll serve
build:
bundle exec jekyll build
dist:
bundle exec jekyll build
# Copy files to server. Need to change the username and change directory back to the project direrctory
cd _0site; scp -r * [email protected]:groups/ecen220wiki/www; cd ..
checks:
make build
make checklinks
# http://localhost:4000