|
11 | 11 | # ------- Makefile Variables --------- #
|
12 | 12 | # run help if no target specified
|
13 | 13 | .DEFAULT_GOAL := help
|
| 14 | +SHELL := /usr/bin/zsh |
14 | 15 |
|
15 | 16 | # Column the target description is printed from
|
16 | 17 | HELP-DESCRIPTION-SPACING := 24
|
@@ -44,17 +45,21 @@ megalinter-upgrade: ## Upgrade MegaLinter config to latest version
|
44 | 45 | # ------------------------------------ #
|
45 | 46 |
|
46 | 47 | # --- Documentation Generation ------ #
|
47 |
| -docs: ## Build and run mkdocs in local server |
| 48 | +python-venv: ## Enable Python Virtual Environment for MkDocs |
48 | 49 | $(info --------- Mkdocs Local Server ---------)
|
49 |
| - $(MKDOCS_SERVER) |
| 50 | + source ~/.local/venv/bin/activate |
50 | 51 |
|
51 |
| -docs-changed: ## Build only changed files and run mkdocs in local server |
| 52 | +docs: ## Build and run mkdocs in local server (python venv) |
52 | 53 | $(info --------- Mkdocs Local Server ---------)
|
53 |
| - $(MKDOCS_SERVER) --dirtyreload |
| 54 | + source ~/.local/venv/bin/activate && $(MKDOCS_SERVER) |
54 | 55 |
|
55 |
| -docs-build: ## Build mkdocs |
| 56 | +docs-changed: ## Build only changed files and run mkdocs in local server (python venv) |
56 | 57 | $(info --------- Mkdocs Local Server ---------)
|
57 |
| - mkdocs build |
| 58 | + source ~/.local/venv/bin/activate && $(MKDOCS_SERVER) --dirtyreload |
| 59 | + |
| 60 | +docs-build: ## Build mkdocs (python venv) |
| 61 | + $(info --------- Mkdocs Local Server ---------) |
| 62 | + source ~/.local/venv/bin/activate && mkdocs build |
58 | 63 | # ------------------------------------ #
|
59 | 64 |
|
60 | 65 | # ------------ Help ------------------ #
|
|
0 commit comments