-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 774 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 774 Bytes
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
BASEDIR=$(CURDIR)
DOCDIR=$(BASEDIR)/docs
help:
@echo 'Makefile for mkdocs static site '
@echo ' '
@echo 'Usage: '
@echo ' make install install mkdocs (virtualenv recomended) '
@echo ' make server run DEV server (in http://localhost:8000)'
@echo ' '
@echo ' make deploy deploy in gh-pages '
_link:
ln -sf $(BASEDIR)/README.md $(DOCDIR)/index.md
install:
pip install mkdocs
dev-server:
$(MAKE) _link
mkdocs serve
deploy:
$(MAKE) _link
mkdocs gh-deploy --clean