-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 874 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 874 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
28
29
30
31
32
33
34
HUGO ?= hugo
BIND ?= 127.0.0.1
PORT ?=
THEME_DIR ?= ../oink
.DEFAULT_GOAL := dev
.PHONY: b build c check d debug dev s serve
b: build
c: check
d: debug
s: serve
dev:
@GOWORK=off HUGO_MODULE_REPLACEMENTS='github.com/pgsty/oink -> $(abspath $(THEME_DIR))' \
$(HUGO) server --renderToMemory --bind "$(BIND)" $(if $(strip $(PORT)),--port "$(PORT)")
debug: dev
serve:
@GOWORK=off $(HUGO) server --environment production --minify \
--disableFastRender --disableLiveReload \
--bind "$(BIND)" $(if $(strip $(PORT)),--port "$(PORT)")
build:
@GOWORK=off $(HUGO) build --minify --cleanDestinationDir
check:
@GOWORK=off go mod verify
@GOWORK=off $(HUGO) build --minify --cleanDestinationDir --printPathWarnings --printI18nWarnings --panicOnWarning
python3 bin/check_markdown.py content public
python3 bin/check_design.py
python3 bin/check_internal_links.py public