-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
74 lines (52 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
git:
git submodule update --init --recursive
setup: git package.json
npm install
setupnpm:
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
build-dist-pr: setupnpm
hugo $(LOCAL_OPTIONS) -d dist
htmltest: clean setup
hugo $(LOCAL_OPTIONS) -d dist
htmltest
htmltest-fast: setup
hugo $(LOCAL_OPTIONS) -d dist
htmltest
coveragetest:
hugo $(LOCAL_OPTIONS) -d dist
python3 .github/workflows/check_python_methods.py --local
markdowntest:
markdownlint --config .markdownlint.yaml
flake8test:
flake8-markdown docs/**/*.md
build-pr: clean setup
hugo $(PR_OPTIONS)
build-pr-no-clean: setupnpm
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)
prettierfix: setup
./node_modules/prettier/bin/prettier.cjs --check docs/**/*.md --fix --write