generated from matthewfeickert/talk-template
/
run_local.sh
29 lines (23 loc) · 784 Bytes
/
run_local.sh
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
#!/usr/bin/env bash
# Chrome
#
# Use Python's http.server
# https://docs.python.org/3/library/http.server.html
printf "\n\nView in Chrome: http://0.0.0.0:8001/index.html?p=talk.md\n\n"
python3 -m http.server 8001
# Firefox
#
# Just open the file path with Firefox (no server required)
# nodejs
#
# Use nodejs http-server
# https://github.com/indexzero/http-server
# where nodejs is symlinked to node to avoid conflicts on Ubutnu
# ln -s /usr/bin/nodejs /usr/bin/node
#
# http-server .
# printf "\n\nView in Chrome: http://127.0.0.1:8080/index.html?p=talk.md\n\n"
# Convert to PDF with decktape (using the Docker image)
# docker run --rm -v $PWD:/slides/ astefanutti/decktape \
# https://matthewfeickert.github.io/talk-IML-workshop-2019/index.html?p=talk.md \
# talk.pdf