forked from fga-eps-mds/2020.1-GaiaDex-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 842 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
.PHONY: serve build push
help:
@echo ""
@echo "Usage: make COMMAND"
@echo ""
@echo "A Makefile for building and deploying mkdocs markdown website"
@echo ""
@echo "Commands:"
@echo "pull Pull the latest Mkdocs image"
@echo "build Build the documentation site"
@echo "run Start the live docs run"
# @echo "deploy Deploy to GitHub Pages"
@echo ""
all: run
run:
sudo docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
pull:
sudo docker pull squidfunk/mkdocs-material
build:
sudo docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material build
deploy:
sudo docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material gh-deploy --ignore-version
#deploy: build
# sudo docker run --rm -it -v ~/.ssh:/root/.ssh -v ${PWD}:/docs squidfunk/mkdocs-material gh-deploy