Skip to content

trying to streamline make/mapbox_token issues #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -52,10 +52,7 @@ jobs:
name: make html
command: |
. venv/bin/activate
rm -f build/failures/*
echo ${mapbox_token} > .mapbox_token
mkdir -p build/ipynb
cd build/ipynb && ln -s ../../.mapbox_token && cd ../..
echo ${mapbox_token} > python/.mapbox_token
make -kj8 || make -kj8
if [ "${CIRCLE_BRANCH}" == "master" ]; then
cd build/html
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -21,6 +21,12 @@ all: $(HTML_FILES) $(V3_REDIR_FILES) $(NEXT_REDIR_FILES)

.PRECIOUS: $(IPYNB_FILES)

$(IPYNB_DIR)/.mapbox_token: $(MD_DIR)/.mapbox_token
@mkdir -p $(IPYNB_DIR)
cd $(IPYNB_DIR) && ln -s ../../$<

$(IPYNB_FILES): $(IPYNB_DIR)/.mapbox_token

$(IPYNB_DIR)/%.ipynb: $(MD_DIR)/%.md
@mkdir -p $(IPYNB_DIR)
@echo "[jupytext] $<"