Skip to content

Commit d28f752

Browse files
committedAug 7, 2019
trying to streamline make/mapbox_token issues
1 parent 4dcaf7a commit d28f752

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
 

‎.circleci/config.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ jobs:
5252
name: make html
5353
command: |
5454
. venv/bin/activate
55-
rm -f build/failures/*
56-
echo ${mapbox_token} > .mapbox_token
57-
mkdir -p build/ipynb
58-
cd build/ipynb && ln -s ../../.mapbox_token && cd ../..
55+
echo ${mapbox_token} > python/.mapbox_token
5956
make -kj8 || make -kj8
6057
if [ "${CIRCLE_BRANCH}" == "master" ]; then
6158
cd build/html

‎Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ all: $(HTML_FILES) $(V3_REDIR_FILES) $(NEXT_REDIR_FILES)
2121

2222
.PRECIOUS: $(IPYNB_FILES)
2323

24+
$(IPYNB_DIR)/.mapbox_token: $(MD_DIR)/.mapbox_token
25+
@mkdir -p $(IPYNB_DIR)
26+
cd $(IPYNB_DIR) && ln -s ../../$<
27+
28+
$(IPYNB_FILES): $(IPYNB_DIR)/.mapbox_token
29+
2430
$(IPYNB_DIR)/%.ipynb: $(MD_DIR)/%.md
2531
@mkdir -p $(IPYNB_DIR)
2632
@echo "[jupytext] $<"

0 commit comments

Comments
 (0)
Please sign in to comment.