-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcommon.mk
More file actions
30 lines (22 loc) · 807 Bytes
/
common.mk
File metadata and controls
30 lines (22 loc) · 807 Bytes
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
BK_DIR=${PWD}/${NAME}
.PHONEY: all jb build fixlinks images pub clean
all: build
jb:
# -v verbose
# -all re-build all pages not just changed pages
# -W make warning treated as errors
# -n nitpick generate warnings for all missing links
# --keep-going despite -W don't stop delay errors till the end
jupyter-book build -v --all -n --keep-going --path-output ${BK_DIR} --config ${PWD}/underthecovers/${SN}_config.yml --toc ${PWD}/underthecovers/${SN}_toc.yml underthecovers
images: jb
-mkdir -p ${BK_DIR}/_build/html/images
cp -r underthecovers/images/* ${BK_DIR}/_build/html/images
fixlinks: images
./fixlinks.sh ${BK_DIR}/_build/html
build: fixlinks
pub:
ghp-import -n -p --prefix=${NAME} -f ${BK_DIR}/_build/html
@echo "Published to:"
@./ghp-url.sh ${NAME}
clean:
${RM} -r ${BK_DIR}