-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
41 lines (32 loc) · 1.12 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
32
33
34
35
36
37
38
39
40
41
# Build and run commands
run-local: # To run the site on your local computer (on Mac or Linux), use the command 'make'.
make build-local
make start-local
build-local: # This builds a local Docker container which runs 'make build' internally.
docker build -t dea-knowledge-hub .
rebuild-local:
docker build --no-cache -t dea-knowledge-hub .
start-local:
docker run \
-it --rm \
--name dea-knowledge-hub \
--publish 8062:8062 \
--volume ./docs/notebooks:/usr/src/app/docs/notebooks \
--volume ./output:/usr/src/app/output \
--env-file .env \
dea-knowledge-hub \
| grep --invert-match --regexp "WARNING.*Document headings start at" \
| grep --invert-match --regexp "WARNING.*duplicate label" \
| grep --invert-match --regexp "^copying images..." \
| grep --invert-match --regexp ".*GET /_static.*" \
| grep --invert-match --regexp ".*GET /_files.*" \
| grep --invert-match --regexp ".*GET /_images.*"
build:
sphinx-build -b dirhtml -j auto -a ./docs ./output
# Other commands
ssh:
docker exec -it dea-knowledge-hub /bin/sh
test-redirects:
npx mocha ./aws/cloudfront/functions/*.js
clean:
rm -rf ./output