Skip to content

Commit

Permalink
dev: update mkdocs targets to use python virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Sep 29, 2024
1 parent 55b0c09 commit 31c35bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
## Changed
- mkdocs: correct github url for repo and edit link
- dev: megalinter upgrade to version 8
- dev: update mkdocs targets to use python virtual environment
18 changes: 12 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# ------- Makefile Variables --------- #
# run help if no target specified
.DEFAULT_GOAL := help
SHELL := /usr/bin/zsh

# Column the target description is printed from
HELP-DESCRIPTION-SPACING := 24
Expand Down Expand Up @@ -44,17 +45,22 @@ megalinter-upgrade: ## Upgrade MegaLinter config to latest version
# ------------------------------------ #

# --- Documentation Generation ------ #
docs: ## Build and run mkdocs in local server

python-venv: ## Enable Python Virtual Environment for MkDocs
$(info --------- Mkdocs Local Server ---------)
source ~/.local/venv/bin/activate

docs: ## Build and run mkdocs in local server (python venv)
$(info --------- Mkdocs Local Server ---------)
$(MKDOCS_SERVER)
source ~/.local/venv/bin/activate && $(MKDOCS_SERVER)

docs-changed: ## Build only changed files and run mkdocs in local server
docs-changed: ## Build only changed files and run mkdocs in local server (python venv)
$(info --------- Mkdocs Local Server ---------)
$(MKDOCS_SERVER) --dirtyreload
source ~/.local/venv/bin/activate && $(MKDOCS_SERVER) --dirtyreload

docs-build: ## Build mkdocs
docs-build: ## Build mkdocs (python venv)
$(info --------- Mkdocs Local Server ---------)
mkdocs build
source ~/.local/venv/bin/activate && mkdocs build
# ------------------------------------ #

# ------------ Help ------------------ #
Expand Down

0 comments on commit 31c35bf

Please sign in to comment.