Skip to content

Commit 3adb1b0

Browse files
committed
chore: add build target to help during debug
1 parent 95b9c42 commit 3adb1b0

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

docs/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: default clean serve
1+
.PHONY: default clean serve build
22

33
default: clean serve
44

@@ -7,3 +7,9 @@ clean:
77

88
serve: clean
99
hugo server --disableFastRender --buildDrafts --enableGitInfo
10+
11+
build: clean
12+
HUGO_ENVIRONMENT=production \
13+
HUGO_ENV=production \
14+
hugo \
15+
--baseURL "https://golangci-lint.run/"

docs/content/docs/contributing/website.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ Also, there is no need to refresh a webpage: hot reload updates changed content
8080
To do this, run:
8181

8282
```bash
83-
HUGO_ENVIRONMENT=production \
84-
HUGO_ENV=production \
85-
hugo \
86-
--gc --minify \
87-
--baseURL "https://golangci-lint.run/"
83+
# (inside the docs/ folder)
84+
make build
8885
```

0 commit comments

Comments
 (0)