forked from viamrobotics/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (36 loc) · 1.26 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
git:
git submodule update --init --recursive
setup: git package.json
npm install
PROD_OPTIONS=-e production --config config.toml,config_prod.toml --minify
DEV_OPTIONS=-e development --config config.toml,config_dev.toml
LOCAL_OPTIONS=-e development --config config.toml,config_local.toml
PR_OPTIONS=-D $(PROD_OPTIONS) --config config.toml,config_pr.toml
SERVE_OPTIONS=--baseURL http://localhost
clean:
rm -rf public resources dist
purge:
npm cache clean --force && hugo mod clean --all && rm -rf public resources dist node_modules themes/docsy/* themes/docsy/.[a-zA-Z0-9]* .hugo_build.lock
build-prod: clean setup
hugo $(PROD_OPTIONS)
build-dist: clean setup
hugo $(LOCAL_OPTIONS) -d dist
htmltest: clean setup
hugo $(LOCAL_OPTIONS) -d dist
htmltest
markdowntest:
markdownlint --config .markdownlint.yaml
build-pr: clean setup
hugo $(PR_OPTIONS)
serve-prod: setup
hugo server $(PROD_OPTIONS) $(SERVE_OPTIONS)
serve-prod-draft: setup
hugo server -D $(PROD_OPTIONS) $(SERVE_OPTIONS)
serve-prod-future: setup
hugo server -F $(PROD_OPTIONS) $(SERVE_OPTIONS)
serve-dev: setup
hugo server $(DEV_OPTIONS) $(SERVE_OPTIONS)
serve-dev-draft: setup
hugo server -D $(DEV_OPTIONS) $(SERVE_OPTIONS)
serve-dev-future: setup
hugo server -F $(DEV_OPTIONS) $(SERVE_OPTIONS)