-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
36 lines (26 loc) · 976 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: docs
default: install
all: install build
# Default directory (can be overridden with DIR=<path>)
DIR ?= tech
h help:
@grep '^[a-z]' Makefile
@echo "Usage:"
@echo " make install DIR=tech # Install dependencies for 'tech'"
@echo " make install DIR=knowledge-base # Install dependencies for 'knowledge-base'"
@echo " make build DIR=tech # Build documentation for 'tech'"
@echo " make deploy DIR=knowledge-base # Deploy 'knowledge-base' documentation"
install:
pip install pip --upgrade
pip install -r $(DIR)requirements.txt
upgrade:
pip install pip --upgrade
pip install -r $(DIR)requirements.txt --upgrade
s serve:
mkdocs serve --strict --config-file $(DIR)/mkdocs.yml
b build:
mkdocs build --strict --config-file $(DIR)/mkdocs.yml
d deploy-tech:
mkdocs gh-deploy --strict --config-file $(DIR)/mkdocs.yml --force
e deploy-kb:
mkdocs gh-deploy --strict --config-file $(DIR)/mkdocs.yml --force --remote-branch gh-pages-kb