Skip to content

Commit caea7c1

Browse files
committed
Fix incorrect build path
1 parent ae4c3fe commit caea7c1

File tree

10 files changed

+7
-7
lines changed

10 files changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OBSHELL=/bin/bash
55
.DEFAULT_GOAL = html
66

77
LESSONS_DIR = lessons
8-
GENERATED_LESSONS_DIR = book/lessons
8+
GENERATED_LESSONS_DIR = site/lessons
99

1010
_requirements.installed:
1111
pip install -q -r requirements.txt
@@ -17,7 +17,7 @@ NOTEBOOKS = $(patsubst %.md, %.ipynb, $(MD_OUTPUTS))
1717

1818
.SECONDARY: $(MD_OUTPUTS) $(NOTEBOOKS)
1919

20-
$(GENERATED_LESSONS_DIR)/%.ipynb:$(LESSONS_DIR)/%.md book/lessons book/lessons/images
20+
$(GENERATED_LESSONS_DIR)/%.ipynb:$(LESSONS_DIR)/%.md site/lessons site/lessons/images
2121
# This does not work, due to bug in notedown; see https://github.com/aaren/notedown/issues/53
2222
#notedown --match=python --precode='%matplotlib inline' $< > $@
2323
notedown --match=python $< > $@
@@ -28,14 +28,14 @@ $(GENERATED_LESSONS_DIR)/%.ipynb:$(LESSONS_DIR)/%.md book/lessons book/lessons/i
2828
# $(eval NBSTRING := [📂 Download lesson notebook](.\/$(basename $(notdir $@)).ipynb)\n\n)
2929
# sed -i'.bak' '1s/^/$(NBSTRING)/' $@
3030

31-
book/lessons:
31+
site/lessons:
3232
mkdir -p book/lessons
3333

34-
book/lessons/images:
35-
ln -s ${PWD}/lessons/images ${PWD}/book/lessons/images
34+
site/lessons/images:
35+
ln -s ${PWD}/lessons/images ${PWD}/site/lessons/images
3636

37-
html: book/lessons _requirements.installed $(NOTEBOOKS) $(MD_OUTPUTS)
38-
@export SPHINXOPTS=-W; make -C book html
37+
html: site/lessons _requirements.installed $(NOTEBOOKS) $(MD_OUTPUTS)
38+
@export SPHINXOPTS=-W; make -C site html
3939
cp $(GENERATED_LESSONS_DIR)/*.ipynb book/build/html/lessons/
4040

4141
clean:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)