-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 788 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (18 loc) · 788 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
HUGO ?= hugo
THEME_REPLACEMENT ?= github.com/pgsty/oink -> $(abspath ../oink)
.PHONY: dev build build-local check check-local clean
dev:
HUGO_MODULE_REPLACEMENTS='$(THEME_REPLACEMENT)' $(HUGO) server --renderToMemory
build:
$(HUGO) build --minify --cleanDestinationDir
build-local:
HUGO_MODULE_REPLACEMENTS='$(THEME_REPLACEMENT)' $(HUGO) build --minify --cleanDestinationDir
check:
go mod verify
$(HUGO) build --minify --cleanDestinationDir --printPathWarnings --printI18nWarnings --panicOnWarning
python3 bin/check_internal_links.py public
check-local:
HUGO_MODULE_REPLACEMENTS='$(THEME_REPLACEMENT)' $(HUGO) build --minify --cleanDestinationDir --printPathWarnings --printI18nWarnings --panicOnWarning
python3 bin/check_internal_links.py public
clean:
$(HUGO) mod clean