Skip to content

Commit

Permalink
chore: enforce virtualenv to prevent spamming global python (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum authored Oct 20, 2023
1 parent abaa264 commit 63493f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ update-submodules: ## grab the current documentation from each connected repo
build: ## build docs into the local 'site' folder
@$(MAKE) graphvizfigures
@$(MAKE) install-requirements
mike deploy $(DSP) latest --update-aliases
mike set-default latest
.venv/bin/mike deploy $(DSP) latest --update-aliases
.venv/bin/mike set-default latest

.PHONY: serve
serve: ## serve docs for local viewing
@$(MAKE) build
mike serve
.venv/bin/mike serve

.PHONY: deploy
deploy: ## build and publish docs to Github Pages with versioning from the release.mk file
Expand All @@ -34,12 +34,12 @@ deploy: ## build and publish docs to Github Pages with versioning from the relea

.PHONY: install-requirements
install-requirements: ## install requirements
pip3 install -r requirements.txt > /dev/null
.venv/bin/pip3 install -r requirements.txt > /dev/null

.PHONY: clean
clean: ## cleans the project directory
@rm -rf site/
mike delete --all
.venv/bin/mike delete --all

.PHONY: graphvizfigures
graphvizfigures: $(PNG_FIGURES) ## to generate images from dot files
Expand Down
4 changes: 2 additions & 2 deletions update-and-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ else
make graphvizfigures

echo "Deploy version ${v} to github pages now"
mike deploy --push --branch gh-pages --update-aliases ${v} ${alias}
.venv/bin/mike deploy --push --branch gh-pages --update-aliases ${v} ${alias}

# keep the latest stable version as default
mike set-default --push --branch gh-pages latest
.venv/bin/mike set-default --push --branch gh-pages latest
echo $sep
fi

Expand Down

0 comments on commit 63493f9

Please sign in to comment.